You are here

public function ContributorWidget::__construct in Bibliography & Citation 8

Same name and namespace in other branches
  1. 2.0.x modules/bibcite_entity/src/Plugin/Field/FieldWidget/ContributorWidget.php \Drupal\bibcite_entity\Plugin\Field\FieldWidget\ContributorWidget::__construct()

Constructs a WidgetBase 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.

Overrides WidgetBase::__construct

File

modules/bibcite_entity/src/Plugin/Field/FieldWidget/ContributorWidget.php, line 38

Class

ContributorWidget
Plugin implementation of the 'bibcite_contributor_widget' widget.

Namespace

Drupal\bibcite_entity\Plugin\Field\FieldWidget

Code

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