public static function FieldWidgetComponent::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.
Overrides ContainerFactoryFormComponentInterface::create
File
- src/
Plugin/ FormComponentType/ FieldWidgetComponent.php, line 51
Class
- FieldWidgetComponent
- Component class for field widgets.
Namespace
Drupal\flexiform\Plugin\FormComponentTypeCode
public static function create(ContainerInterface $container, $name, array $options, FlexiformEntityFormDisplay $form_display) {
return new static($name, $options, $form_display, $container
->get('plugin.manager.field.widget'), $container
->get('module_handler'));
}