You are here

public function EntityEmbedDisplayBase::__construct in Entity Embed 8

Constructs an EntityEmbedDisplayBase object.

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.

\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager service.

\Drupal\Core\Language\LanguageManagerInterface $language_manager: The language manager.

Overrides PluginBase::__construct

1 call to EntityEmbedDisplayBase::__construct()
FieldFormatterEntityEmbedDisplayBase::__construct in src/EntityEmbedDisplay/FieldFormatterEntityEmbedDisplayBase.php
Constructs a FieldFormatterEntityEmbedDisplayBase object.
1 method overrides EntityEmbedDisplayBase::__construct()
FieldFormatterEntityEmbedDisplayBase::__construct in src/EntityEmbedDisplay/FieldFormatterEntityEmbedDisplayBase.php
Constructs a FieldFormatterEntityEmbedDisplayBase object.

File

src/EntityEmbedDisplay/EntityEmbedDisplayBase.php, line 70

Class

EntityEmbedDisplayBase
Defines a base Entity Embed Display implementation.

Namespace

Drupal\entity_embed\EntityEmbedDisplay

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, EntityTypeManagerInterface $entity_type_manager, LanguageManagerInterface $language_manager) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this
    ->setConfiguration($configuration);
  $this->entityTypeManager = $entity_type_manager;
  $this->languageManager = $language_manager;
}