You are here

public function LanguageAutocompleteWidget::__construct in Custom Language field 8

LanguageAutocompleteWidget constructor.

Parameters

string $plugin_id: Plugin id.

mixed $plugin_definition: Plugin definition.

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

array $settings: Settings.

array $third_party_settings: Third party settings.

\Drupal\Core\Cache\CacheBackendInterface $cacheData: Cache data.

Overrides WidgetBase::__construct

File

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

Class

LanguageAutocompleteWidget
Plugin implementation of the 'languagefield_autocomplete' widget.

Namespace

Drupal\languagefield\Plugin\Field\FieldWidget

Code

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