ConfigApplierInterface
API reference › HTML Core › Config › ConfigApplierInterface
Implemented by 1 type
Applies resolved config recipes to immutable component instances.
Methods
Section titled “Methods”| Method | Description | Defined by |
|---|---|---|
apply() abstract | Applies a recipe and returns the configured component instance. | ConfigApplierInterface |
Method details
Section titled “Method details”apply()
Section titled “apply() ”abstract public function apply(object $component, UIAwesome\Html\Core\Config\Recipe $recipe, UIAwesome\Html\Core\Config\ComponentContext $context, bool $strict = true): objectApplies a recipe and returns the configured component instance.
Parameters
| Parameter | Type | Description |
|---|---|---|
$component | object | Component to configure. |
$recipe | Recipe | Resolved recipe to apply. |
$context | ComponentContext | Semantic component context. |
$strict | bool | Whether unavailable methods or incompatible return values must fail instead of being skipped. |
Returns
object: Configured component instance.