You are here

public function IntervalWidget::__construct in Interval Field 8

Constructs a WidgetBase object.

Parameters

array $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\interval\IntervalPluginManagerInterface $interval_manager: The interval plugin manager.

Overrides WidgetBase::__construct

File

src/Plugin/Field/FieldWidget/IntervalWidget.php, line 49

Class

IntervalWidget
Provides an interval widget.

Namespace

Drupal\interval\Plugin\Field\FieldWidget

Code

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