function entity_info_cache_clear

Resets the cached information about entity types.

8 calls to entity_info_cache_clear()
EntityTranslationUITest::enableTranslation in drupal/core/modules/translation_entity/lib/Drupal/translation_entity/Tests/EntityTranslationUITest.php
Enables translation for the current entity type and bundle.
field_attach_rename_bundle in drupal/core/modules/field/field.attach.inc
Notifies field.module that a bundle was renamed.
field_info_cache_clear in drupal/core/modules/field/field.info.inc
Clears the field info cache without clearing the field data cache.
field_test_entity_info_translatable in drupal/core/modules/field/tests/modules/field_test/field_test.entity.inc
Helper function to enable entity translations.
module_disable in drupal/core/includes/module.inc
Disables a given set of modules.

... See full list

File

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

Code

function entity_info_cache_clear() {
  drupal_static_reset('entity_get_info');

  // Clear all languages.
  cache()
    ->deleteTags(array(
    'entity_info' => TRUE,
  ));
}