You are here

public function EntityDefinitionUpdateManager::__construct in Drupal 9

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Entity/EntityDefinitionUpdateManager.php \Drupal\Core\Entity\EntityDefinitionUpdateManager::__construct()

Constructs a new EntityDefinitionUpdateManager.

Parameters

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

\Drupal\Core\Entity\EntityLastInstalledSchemaRepositoryInterface $entity_last_installed_schema_repository: The last installed schema repository service.

\Drupal\Core\Entity\EntityFieldManagerInterface $entity_field_manager: The entity field manager service.

\Drupal\Core\Entity\EntityTypeListenerInterface $entity_type_listener: The entity type listener interface.

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

File

core/lib/Drupal/Core/Entity/EntityDefinitionUpdateManager.php, line 67

Class

EntityDefinitionUpdateManager
Manages entity definition updates.

Namespace

Drupal\Core\Entity

Code

public function __construct(EntityTypeManagerInterface $entity_type_manager, EntityLastInstalledSchemaRepositoryInterface $entity_last_installed_schema_repository, EntityFieldManagerInterface $entity_field_manager, EntityTypeListenerInterface $entity_type_listener, FieldStorageDefinitionListenerInterface $field_storage_definition_listener) {
  $this->entityTypeManager = $entity_type_manager;
  $this->entityLastInstalledSchemaRepository = $entity_last_installed_schema_repository;
  $this->entityFieldManager = $entity_field_manager;
  $this->entityTypeListener = $entity_type_listener;
  $this->fieldStorageDefinitionListener = $field_storage_definition_listener;
}