You are here

public function BundlePluginInstaller::__construct in Entity API 8

Constructs a new BundlePluginInstaller object.

Parameters

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

\Drupal\Core\Entity\EntityBundleListenerInterface $entity_bundle_listener: The entity bundle listener.

\Drupal\Core\Field\FieldStorageDefinitionListenerInterface $field_storage_definition_listener: The field storage definition listener.

\Drupal\Core\Field\FieldDefinitionListenerInterface $field_definition_listener: The field definition listener.

File

src/BundlePlugin/BundlePluginInstaller.php, line 53

Class

BundlePluginInstaller

Namespace

Drupal\entity\BundlePlugin

Code

public function __construct(EntityTypeManagerInterface $entity_type_manager, EntityBundleListenerInterface $entity_bundle_listener, FieldStorageDefinitionListenerInterface $field_storage_definition_listener, FieldDefinitionListenerInterface $field_definition_listener) {
  $this->entityTypeManager = $entity_type_manager;
  $this->entityBundleListener = $entity_bundle_listener;
  $this->fieldStorageDefinitionListener = $field_storage_definition_listener;
  $this->fieldDefinitionListener = $field_definition_listener;
}