You are here

public static function ContainerFactoryFormComponentInterface::create in Flexiform 8

Creates an instance of the form componenent.

Parameters

\Symfony\Component\DependencyInjection\ContainerInterface $container: The container to pull out services used in the componenet.

string $name: The component name.

array $options: The component options.

\Drupal\flexiform\FlexiformEntityFormDisplay $form_display: The flexiform entity form display.

3 methods override ContainerFactoryFormComponentInterface::create()
CustomTextComponent::create in src/Plugin/FormComponentType/CustomTextComponent.php
Creates an instance of the form componenent.
FieldWidgetComponent::create in src/Plugin/FormComponentType/FieldWidgetComponent.php
Creates an instance of the form componenent.
FormElementComponent::create in src/Plugin/FormComponentType/FormElementComponent.php
Creates an instance of the form componenent.

File

src/FormComponent/ContainerFactoryFormComponentInterface.php, line 25

Class

ContainerFactoryFormComponentInterface
Defines an interface for pulling service dependencies into form components.

Namespace

Drupal\flexiform\FormComponent

Code

public static function create(ContainerInterface $container, $name, array $options, FlexiformEntityFormDisplay $form_display);