Skip to content
PHP Ecosystem
Explore

ComponentFactoryInterface

API reference › HTML Core › Factory › ComponentFactoryInterface

interfaceUIAwesome\Html\Core\Factory\ComponentFactoryInterface
Sourcesrc/Factory/ComponentFactoryInterface.php

Creates components from semantic config contexts.

MethodDescriptionDefined by
create() abstractCreates the component represented by the supplied context.ComponentFactoryInterface
abstract public function create(UIAwesome\Html\Core\Config\ComponentContext $context): object

Creates the component represented by the supplied context.

Parameters

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

Returns

object: Created component instance.