You are here

public function AutocompleteDeluxeWidget::__construct in Autocomplete Deluxe 8

Same name and namespace in other branches
  1. 2.0.x src/Plugin/Field/FieldWidget/AutocompleteDeluxeWidget.php \Drupal\autocomplete_deluxe\Plugin\Field\FieldWidget\AutocompleteDeluxeWidget::__construct()

Parameters

string $plugin_id: The plugin_id for the plugin instance.

mixed $plugin_definition: The plugin implementation definition.

\Drupal\Core\Field\FieldDefinitionInterface $field_definition: The field definition for the operation.

array $settings: The formatter settings.

array $third_party_settings: Any third party settings.

\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: The module handler.

Overrides WidgetBase::__construct

File

src/Plugin/Field/FieldWidget/AutocompleteDeluxeWidget.php, line 59

Class

AutocompleteDeluxeWidget
Plugin implementation of the 'options_buttons' widget.

Namespace

Drupal\autocomplete_deluxe\Plugin\Field\FieldWidget

Code

public function __construct($plugin_id, $plugin_definition, FieldDefinitionInterface $field_definition, array $settings, array $third_party_settings, ModuleHandlerInterface $module_handler) {
  parent::__construct($plugin_id, $plugin_definition, $field_definition, $settings, $third_party_settings);
  $this->moduleHandler = $module_handler;
}