You are here

public function AutocompleteDeluxeWidget::__construct in Autocomplete Deluxe 2.0.x

Same name and namespace in other branches
  1. 8 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.

\Drupal\Core\Session\AccountInterface $account: Current account.

\Drupal\Core\KeyValueStore\KeyValueFactoryInterface $key_value: Key value storage.

Overrides WidgetBase::__construct

File

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

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, AccountInterface $account, KeyValueFactoryInterface $key_value) {
  parent::__construct($plugin_id, $plugin_definition, $field_definition, $settings, $third_party_settings);
  $this->moduleHandler = $module_handler;
  $this->account = $account;
  $this->keyValue = $key_value;
}