You are here

public function FivestarWidgetBase::__construct in Fivestar 8

Constructs the FivestarWidgetBase 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\fivestar\WidgetManager $widget_manager: The widget manager.

Overrides WidgetBase::__construct

File

src/Plugin/Field/FieldWidget/FivestarWidgetBase.php, line 38

Class

FivestarWidgetBase
Base class for Fivestar field widgets.

Namespace

Drupal\fivestar\Plugin\Field\FieldWidget

Code

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