You are here

public function FieldFormatterEntityEmbedDisplayBase::__construct in Entity Embed 8

Constructs a FieldFormatterEntityEmbedDisplayBase 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\Field\FormatterPluginManager $formatter_plugin_manager: The field formatter plugin manager.

\Drupal\Core\TypedData\TypedDataManager $typed_data_manager: The typed data manager.

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

Overrides EntityEmbedDisplayBase::__construct

1 call to FieldFormatterEntityEmbedDisplayBase::__construct()
EntityReferenceFieldFormatter::__construct in src/Plugin/entity_embed/EntityEmbedDisplay/EntityReferenceFieldFormatter.php
Constructs a new EntityReferenceFieldFormatter.
1 method overrides FieldFormatterEntityEmbedDisplayBase::__construct()
EntityReferenceFieldFormatter::__construct in src/Plugin/entity_embed/EntityEmbedDisplay/EntityReferenceFieldFormatter.php
Constructs a new EntityReferenceFieldFormatter.

File

src/EntityEmbedDisplay/FieldFormatterEntityEmbedDisplayBase.php, line 69

Class

FieldFormatterEntityEmbedDisplayBase
Base class for field formatter display plugins.

Namespace

Drupal\entity_embed\EntityEmbedDisplay

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, EntityTypeManagerInterface $entity_type_manager, FormatterPluginManager $formatter_plugin_manager, TypedDataManager $typed_data_manager, LanguageManagerInterface $language_manager) {
  $this->formatterPluginManager = $formatter_plugin_manager;
  $this
    ->setConfiguration($configuration);
  $this->typedDataManager = $typed_data_manager;
  parent::__construct($configuration, $plugin_id, $plugin_definition, $entity_type_manager, $language_manager);
}