You are here

public function OptionsTargetWorkspaceWidget::__construct in Workspace 8

OptionsTargetWorkspaceWidget constructor.

Parameters

string $plugin_id: Plugin id.

mixed $plugin_definition: Plugin definition.

\Drupal\Core\Field\FieldDefinitionInterface $field_definition: Field definition.

array $settings: Field settings.

array $third_party_settings: Third party settings.

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

Overrides OptionsWidgetBase::__construct

File

src/Plugin/Field/FieldWidget/OptionsTargetWorkspaceWidget.php, line 50

Class

OptionsTargetWorkspaceWidget
Plugin implementation of the 'options_target_workspace_select' widget.

Namespace

Drupal\workspace\Plugin\Field\FieldWidget

Code

public function __construct($plugin_id, $plugin_definition, FieldDefinitionInterface $field_definition, array $settings, array $third_party_settings, EntityTypeManagerInterface $entity_type_manager) {
  parent::__construct($plugin_id, $plugin_definition, $field_definition, $settings, $third_party_settings);
  $this->entityTypeManager = $entity_type_manager;
}