You are here

public function ExampleCustomInput::__construct in Extra Field 8.2

ExampleCustomInput constructor.

Parameters

array $configuration: A configuration array containing information about the plugin instance.

string $plugin_id: The plugin_id for the plugin instance.

mixed $plugin_definition: The plugin implementation definition.

\Drupal\Core\Entity\EntityTypeManagerInterface $entityTypeManager: The entity type manager.

Overrides PluginBase::__construct

File

modules/extra_field_example/src/Plugin/ExtraField/Form/ExampleCustomInput.php, line 63

Class

ExampleCustomInput
Example Extra field form display.

Namespace

Drupal\extra_field_example\Plugin\ExtraField\Form

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, EntityTypeManagerInterface $entityTypeManager) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this->entityTypeManager = $entityTypeManager;
}