ThemeInterface
API reference › HTML Core › Theme › ThemeInterface
Resolves ordered config recipes for semantic component contexts.
Methods
Section titled “Methods”| Method | Description | Defined by |
|---|---|---|
getName() abstract | Returns the stable theme identifier used in diagnostics and as the conventional recipe-name prefix. | ThemeInterface |
getRecipes() abstract | Returns recipes in the order in which they must be applied. | ThemeInterface |
Method details
Section titled “Method details”getName()
Section titled “getName() ”abstract public function getName(): stringReturns the stable theme identifier used in diagnostics and as the conventional recipe-name prefix.
Returns
string: Stable theme identifier.
getRecipes()
Section titled “getRecipes() ”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
| Parameter | Type | Description |
|---|---|---|
$context | UIAwesome\ | Semantic component context. |
Returns
iterable<UIAwesome\Html\Core\Config\Recipe>