interface ContainerFactoryFormComponentInterface in Flexiform 8
Defines an interface for pulling service dependencies into form components.
Hierarchy
- interface \Drupal\flexiform\FormComponent\ContainerFactoryFormComponentInterface
Expanded class hierarchy of ContainerFactoryFormComponentInterface
All classes that implement ContainerFactoryFormComponentInterface
3 files declare their use of ContainerFactoryFormComponentInterface
- CustomTextComponent.php in src/
Plugin/ FormComponentType/ CustomTextComponent.php - FieldWidgetComponent.php in src/
Plugin/ FormComponentType/ FieldWidgetComponent.php - FormElementComponent.php in src/
Plugin/ FormComponentType/ FormElementComponent.php
File
- src/
FormComponent/ ContainerFactoryFormComponentInterface.php, line 11
Namespace
Drupal\flexiform\FormComponentView source
interface ContainerFactoryFormComponentInterface {
/**
* Creates an instance of the form componenent.
*
* @param \Symfony\Component\DependencyInjection\ContainerInterface $container
* The container to pull out services used in the componenet.
* @param string $name
* The component name.
* @param array $options
* The component options.
* @param \Drupal\flexiform\FlexiformEntityFormDisplay $form_display
* The flexiform entity form display.
*/
public static function create(ContainerInterface $container, $name, array $options, FlexiformEntityFormDisplay $form_display);
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
ContainerFactoryFormComponentInterface:: |
public static | function | Creates an instance of the form componenent. | 3 |