You are here

public function EntityUpdateService::__construct in Entity Construction Kit (ECK) 8

Constructs a new EntityDefinitionUpdateManager.

Parameters

\Drupal\Core\Entity\EntityDefinitionUpdateManagerInterface $entity_definition_update_manager: The entity definition update manager.

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

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

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

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

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

File

src/EntityUpdateService.php, line 77

Class

EntityUpdateService
Class to update entity and field storage for ECK entities.

Namespace

Drupal\eck

Code

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