class ContentTranslationUpdatesManager (View source)

deprecated in drupal:8.7.0 and is removed from drupal:9.0.0. Definitions are updated automatically now so no replacement is needed.

Provides the logic needed to update field storage definitions when needed.

Properties

protected EntityFieldManagerInterface $entityFieldManager

The entity field manager.

protected $entityLastInstalledSchemaRepository

The installed entity definition repository.

protected EntityTypeManagerInterface $entityTypeManager

The entity type manager.

protected EntityDefinitionUpdateManagerInterface $updateManager

The entity definition update manager.

Methods

__construct(EntityTypeManagerInterface $entity_type_manager, EntityDefinitionUpdateManagerInterface $update_manager, EntityFieldManagerInterface $entity_field_manager = NULL, EntityLastInstalledSchemaRepositoryInterface $entity_last_installed_schema_repository = NULL)

Constructs an updates manager instance.

updateDefinitions(array $entity_types)

Executes field storage definition updates if needed.

Details

__construct(EntityTypeManagerInterface $entity_type_manager, EntityDefinitionUpdateManagerInterface $update_manager, EntityFieldManagerInterface $entity_field_manager = NULL, EntityLastInstalledSchemaRepositoryInterface $entity_last_installed_schema_repository = NULL)

Constructs an updates manager instance.

Parameters

EntityTypeManagerInterface $entity_type_manager

The entity type manager.

EntityDefinitionUpdateManagerInterface $update_manager

The entity definition update manager.

EntityFieldManagerInterface $entity_field_manager

The entity field manager.

EntityLastInstalledSchemaRepositoryInterface $entity_last_installed_schema_repository

The installed entity definition repository.

updateDefinitions(array $entity_types)

Executes field storage definition updates if needed.

Parameters

array $entity_types

A list of entity type definitions to be processed.