You are here

protected function EntityDefinitionUpdateManager::clearCachedDefinitions in Drupal 8

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

Clears necessary caches to apply entity/field definition updates.

8 calls to EntityDefinitionUpdateManager::clearCachedDefinitions()
EntityDefinitionUpdateManager::installEntityType in core/lib/Drupal/Core/Entity/EntityDefinitionUpdateManager.php
Installs a new entity type definition.
EntityDefinitionUpdateManager::installFieldableEntityType in core/lib/Drupal/Core/Entity/EntityDefinitionUpdateManager.php
Installs a new fieldable entity type definition.
EntityDefinitionUpdateManager::installFieldStorageDefinition in core/lib/Drupal/Core/Entity/EntityDefinitionUpdateManager.php
Installs a new field storage definition.
EntityDefinitionUpdateManager::uninstallEntityType in core/lib/Drupal/Core/Entity/EntityDefinitionUpdateManager.php
Uninstalls an entity type definition.
EntityDefinitionUpdateManager::uninstallFieldStorageDefinition in core/lib/Drupal/Core/Entity/EntityDefinitionUpdateManager.php
Uninstalls a field storage definition.

... See full list

File

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

Class

EntityDefinitionUpdateManager
Manages entity definition updates.

Namespace

Drupal\Core\Entity

Code

protected function clearCachedDefinitions() {
  $this->entityTypeManager
    ->clearCachedDefinitions();
  $this->entityFieldManager
    ->clearCachedFieldDefinitions();
}