public function WidgetBase::__construct in Entity Browser 8
Same name and namespace in other branches
- 8.2 src/WidgetBase.php \Drupal\entity_browser\WidgetBase::__construct()
WidgetBase constructor.
Parameters
array $configuration: A configuration array containing information about the plugin instance.
string $plugin_id: The plugin_id for the plugin instance.
mixed $plugin_definition: The plugin implementation definition.
\Symfony\Component\EventDispatcher\EventDispatcherInterface $event_dispatcher: Event dispatcher service.
\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager service.
\Drupal\entity_browser\WidgetValidationManager $validation_manager: The Widget Validation Manager service.
Overrides PluginBase::__construct
3 calls to WidgetBase::__construct()
- EntityForm::__construct in modules/
entity_form/ src/ Plugin/ EntityBrowser/ Widget/ EntityForm.php - Constructs widget plugin.
- Upload::__construct in src/
Plugin/ EntityBrowser/ Widget/ Upload.php - Upload constructor.
- View::__construct in src/
Plugin/ EntityBrowser/ Widget/ View.php - Constructs a new View object.
3 methods override WidgetBase::__construct()
- EntityForm::__construct in modules/
entity_form/ src/ Plugin/ EntityBrowser/ Widget/ EntityForm.php - Constructs widget plugin.
- Upload::__construct in src/
Plugin/ EntityBrowser/ Widget/ Upload.php - Upload constructor.
- View::__construct in src/
Plugin/ EntityBrowser/ Widget/ View.php - Constructs a new View object.
File
- src/
WidgetBase.php, line 88
Class
- WidgetBase
- Base class for widget plugins.
Namespace
Drupal\entity_browserCode
public function __construct(array $configuration, $plugin_id, $plugin_definition, EventDispatcherInterface $event_dispatcher, EntityTypeManagerInterface $entity_type_manager, WidgetValidationManager $validation_manager) {
parent::__construct($configuration, $plugin_id, $plugin_definition);
$this->eventDispatcher = $event_dispatcher;
$this->entityTypeManager = $entity_type_manager;
$this->validationManager = $validation_manager;
$this
->setConfiguration($configuration);
}