You are here

public function BatOptionsCombined::__construct in Booking and Availability Management Tools for Drupal 8

Constructs a BatOptionsCombined 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\Utility\Token $token: The token service.

Overrides WidgetBase::__construct

File

modules/bat_options/src/Plugin/Field/FieldWidget/BatOptionsCombined.php, line 56
Contains \Drupal\bat_options\Plugin\Field\FieldWidget\BatOptionsCombined.

Class

BatOptionsCombined
Plugin annotation @FieldWidget( id = "bat_options_combined", label = @Translation("Combined text field'"), field_types = { "bat_options" } )

Namespace

Drupal\bat_options\Plugin\Field\FieldWidget

Code

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