function EntityDefinitionUpdateManager::clearCachedDefinitions

Same name in other branches
  1. 9 core/lib/Drupal/Core/Entity/EntityDefinitionUpdateManager.php \Drupal\Core\Entity\EntityDefinitionUpdateManager::clearCachedDefinitions()
  2. 8.9.x core/lib/Drupal/Core/Entity/EntityDefinitionUpdateManager.php \Drupal\Core\Entity\EntityDefinitionUpdateManager::clearCachedDefinitions()
  3. 11.x 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
EntityDefinitionUpdateManager::installFieldableEntityType in core/lib/Drupal/Core/Entity/EntityDefinitionUpdateManager.php
EntityDefinitionUpdateManager::installFieldStorageDefinition in core/lib/Drupal/Core/Entity/EntityDefinitionUpdateManager.php
EntityDefinitionUpdateManager::uninstallEntityType in core/lib/Drupal/Core/Entity/EntityDefinitionUpdateManager.php
EntityDefinitionUpdateManager::uninstallFieldStorageDefinition in core/lib/Drupal/Core/Entity/EntityDefinitionUpdateManager.php

... See full list

File

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

Class

EntityDefinitionUpdateManager
Manages entity definition updates.

Namespace

Drupal\Core\Entity

Code

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.