public function EntityReferenceViewsOptionsSelectWidget::__construct in Entity Reference Views Select 8
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 OptionsWidgetBase::__construct
File
- src/
Plugin/ Field/ FieldWidget/ EntityReferenceViewsOptionsSelectWidget.php, line 70
Class
- EntityReferenceViewsOptionsSelectWidget
- Plugin implementation of the 'erviews_options_select' widget.
Namespace
Drupal\entity_reference_views_select\Plugin\Field\FieldWidgetCode
public function __construct($plugin_id, $plugin_definition, FieldDefinitionInterface $field_definition, array $settings, array $third_party_settings, EntityStorageInterface $view_loader, ViewExecutableFactory $view_factory, RendererInterface $renderer) {
parent::__construct($plugin_id, $plugin_definition, $field_definition, $settings, $third_party_settings);
$this->viewLoader = $view_loader;
$this->viewFactory = $view_factory;
$this->renderer = $renderer;
}