public function DisplayBase::__construct in Entity Browser 8
Same name and namespace in other branches
- 8.2 src/DisplayBase.php \Drupal\entity_browser\DisplayBase::__construct()
Constructs display plugin.
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\Component\Uuid\UuidInterface $uuid_generator: UUID generator interface.
\Drupal\Core\KeyValueStore\KeyValueStoreExpirableInterface $selection_storage: The selection storage.
Overrides PluginBase::__construct
1 call to DisplayBase::__construct()
- IFrame::__construct in src/
Plugin/ EntityBrowser/ Display/ IFrame.php - Constructs display plugin.
1 method overrides DisplayBase::__construct()
- IFrame::__construct in src/
Plugin/ EntityBrowser/ Display/ IFrame.php - Constructs display plugin.
File
- src/
DisplayBase.php, line 81
Class
- DisplayBase
- Base implementation for display plugins.
Namespace
Drupal\entity_browserCode
public function __construct(array $configuration, $plugin_id, $plugin_definition, EventDispatcherInterface $event_dispatcher, UuidInterface $uuid_generator, KeyValueStoreExpirableInterface $selection_storage) {
parent::__construct($configuration, $plugin_id, $plugin_definition);
$this
->setConfiguration($configuration);
$this->eventDispatcher = $event_dispatcher;
$this->uuidGenerator = $uuid_generator;
$this->selectionStorage = $selection_storage;
}