function entity_info_cache_clear

Resets the cached information about entity types.

13 calls to entity_info_cache_clear()
EntityTranslationSettingsTest::assertSettings in drupal/core/modules/translation_entity/lib/Drupal/translation_entity/Tests/EntityTranslationSettingsTest.php
Asserts that translatability has the expected value for the given bundle.
EntityTranslationTestBase::enableTranslation in drupal/core/modules/translation_entity/lib/Drupal/translation_entity/Tests/EntityTranslationTestBase.php
Enables translation for the current entity type and bundle.
EntityViewModeStorageController::preDelete in drupal/core/modules/entity/lib/Drupal/entity/EntityViewModeStorageController.php
Acts on entities before they are deleted.
EntityViewModeStorageController::preSave in drupal/core/modules/entity/lib/Drupal/entity/EntityViewModeStorageController.php
Acts on an entity before the presave hook is invoked.
entity_invoke_bundle_hook in drupal/core/includes/entity.inc
Notifies modules about an operation that was performed on a entity bundle.

... See full list

File

drupal/core/includes/entity.inc, line 42
Entity API for handling entities like nodes or users.

Code

function entity_info_cache_clear() {
  drupal_static_reset('entity_get_view_modes');
  drupal_static_reset('entity_get_bundles');

  // Clear all languages.
  Drupal::entityManager()
    ->clearCachedDefinitions();
}