Skip to content
PHP Ecosystem
Explore

ThemeInterface

API reference › HTML Core › Theme › ThemeInterface

interfaceUIAwesome\Html\Core\Theme\ThemeInterface
Sourcesrc/Theme/ThemeInterface.php

Resolves ordered config recipes for semantic component contexts.

MethodDescriptionDefined by
getName() abstractReturns the stable theme identifier used in diagnostics and as the conventional recipe-name prefix.ThemeInterface
getRecipes() abstractReturns recipes in the order in which they must be applied.ThemeInterface
abstract public function getName(): string

Returns the stable theme identifier used in diagnostics and as the conventional recipe-name prefix.

Returns

string: Stable theme identifier.

abstract public function getRecipes(UIAwesome\Html\Core\Config\ComponentContext $context): iterable<UIAwesome\Html\Core\Config\Recipe>

Returns recipes in the order in which they must be applied.

Parameters

ParameterTypeDescription
$contextUIAwesome\Html\Core\Config\ComponentContextSemantic component context.

Returns

iterable<UIAwesome\Html\Core\Config\Recipe>