You are here

public function IconSelectFieldWidgetDefault::__construct in Icon Select 8

Constructs a new IconSelectFieldWidget object.

Parameters

string $plugin_id: The plugin_id for the widget.

mixed $plugin_definition: The plugin implementation definition.

\Drupal\Core\Field\FieldDefinitionInterface $field_definition: The definition of the field to which the widget is associated.

array $settings: The widget settings.

array $third_party_settings: Any third party settings.

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

Overrides WidgetBase::__construct

File

src/Plugin/Field/FieldWidget/IconSelectFieldWidgetDefault.php, line 51

Class

IconSelectFieldWidgetDefault
Plugin implementation of the icon_select_widget default input widget.

Namespace

Drupal\icon_select\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;
}