You are here

public function FieldWidgetDisplayBase::__construct in Entity Browser 8

Same name and namespace in other branches
  1. 8.2 src/FieldWidgetDisplayBase.php \Drupal\entity_browser\FieldWidgetDisplayBase::__construct()

Constructs field widget 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.

Overrides PluginBase::__construct

3 calls to FieldWidgetDisplayBase::__construct()
EntityLabel::__construct in src/Plugin/EntityBrowser/FieldWidgetDisplay/EntityLabel.php
Constructs entity label plugin.
ImageThumbnail::__construct in src/Plugin/EntityBrowser/FieldWidgetDisplay/ImageThumbnail.php
Constructs widget plugin.
RenderedEntity::__construct in src/Plugin/EntityBrowser/FieldWidgetDisplay/RenderedEntity.php
Constructs widget plugin.
3 methods override FieldWidgetDisplayBase::__construct()
EntityLabel::__construct in src/Plugin/EntityBrowser/FieldWidgetDisplay/EntityLabel.php
Constructs entity label plugin.
ImageThumbnail::__construct in src/Plugin/EntityBrowser/FieldWidgetDisplay/ImageThumbnail.php
Constructs widget plugin.
RenderedEntity::__construct in src/Plugin/EntityBrowser/FieldWidgetDisplay/RenderedEntity.php
Constructs widget plugin.

File

src/FieldWidgetDisplayBase.php, line 24

Class

FieldWidgetDisplayBase
Base implementation for field widget display plugins.

Namespace

Drupal\entity_browser

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this
    ->setConfiguration($configuration);
}