You are here

public static function CustomTextComponent::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/CustomTextComponent.php, line 29

Class

CustomTextComponent
Component class for field widgets.

Namespace

Drupal\flexiform\Plugin\FormComponentType

Code

public static function create(ContainerInterface $container, $name, array $options, FlexiformEntityFormDisplay $form_display) {
  return new static($name, $options, $form_display, $container
    ->get('flexiform.token'));
}