You are here

public function PluginSelectWidget::__construct in Commerce Core 8.2

Constructs a new PluginSelectWidget 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\Component\Plugin\PluginManagerInterface $plugin_manager: The plugin manager for the field's plugin type.

\Drupal\commerce\InlineFormManager $inline_form_manager: The inline form manager.

Overrides WidgetBase::__construct

File

src/Plugin/Field/FieldWidget/PluginSelectWidget.php, line 62

Class

PluginSelectWidget
Plugin implementation of the 'commerce_plugin_select' widget.

Namespace

Drupal\commerce\Plugin\Field\FieldWidget

Code

public function __construct($plugin_id, $plugin_definition, FieldDefinitionInterface $field_definition, array $settings, array $third_party_settings, PluginManagerInterface $plugin_manager, InlineFormManager $inline_form_manager) {
  parent::__construct($plugin_id, $plugin_definition, $field_definition, $settings, $third_party_settings);
  $this->pluginManager = $plugin_manager;
  $this->inlineFormManager = $inline_form_manager;
}