You are here

public function EntityDefinitionUpdateManagerInterface::applyUpdates in Drupal 8

Applies all the detected valid changes.

Use this with care, as it will apply updates for any module, which will lead to unpredictable results.

Throws

\Drupal\Core\Entity\EntityStorageException This exception is thrown if a change cannot be applied without unacceptable data loss. In such a case, the site administrator needs to apply some other process, such as a custom update function or a migration via the Migrate module.

Deprecated

in drupal:8.7.0 and is removed from drupal:9.0.0. Use \Drupal\Core\Entity\EntityDefinitionUpdateManagerInterface::getChangeList() and execute each entity type and field storage update manually instead.

See also

https://www.drupal.org/node/3034742

1 method overrides EntityDefinitionUpdateManagerInterface::applyUpdates()
EntityDefinitionUpdateManager::applyUpdates in core/lib/Drupal/Core/Entity/EntityDefinitionUpdateManager.php
Applies all the detected valid changes.

File

core/lib/Drupal/Core/Entity/EntityDefinitionUpdateManagerInterface.php, line 118

Class

EntityDefinitionUpdateManagerInterface
Defines an interface for managing entity definition updates.

Namespace

Drupal\Core\Entity

Code

public function applyUpdates();