You are here

public function Entity::__construct in Entity Embed 8

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\Entity\EntityTypeRepositoryInterface $entity_type_repository: The entity type repository service.

\Drupal\Core\Entity\EntityTypeBundleInfoInterface $bundle_info: The entity type bundle info service.

\Drupal\entity_embed\EntityEmbedDisplay\EntityEmbedDisplayManager $display_plugin_manager: The plugin manager.

Overrides EmbedTypeBase::__construct

File

src/Plugin/EmbedType/Entity.php, line 74

Class

Entity
Entity embed type.

Namespace

Drupal\entity_embed\Plugin\EmbedType

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, EntityTypeManagerInterface $entity_type_manager, EntityTypeRepositoryInterface $entity_type_repository, EntityTypeBundleInfoInterface $bundle_info, EntityEmbedDisplayManager $display_plugin_manager) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this->entityTypeManager = $entity_type_manager;
  $this->entityTypeRepository = $entity_type_repository;
  $this->entityTypeBundleInfo = $bundle_info;
  $this->displayPluginManager = $display_plugin_manager;
}