Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By Berdir on
Change record status:
Published (View all published change records)
Project:
Introduced in branch:
8.x
Issue links:
Description:
The mentioned cache clear functions have been removed in favor of the following methods:
-
EntityManagerInterface::clearCachedDefinitions()
: Clears all entity related caches, including entity type definitions and also calls the two other methods. -
EntityManagerInterface::clearCachedFieldDefinitions()
: Clears all caches related to field definitions, including the field map, the cached entity values and every other cache tagged with entity_field_info. -
EntityManagerInterface::clearCachedBundles()
: Clears cached entity bundle information.
Ignore below here, just there to make this findable in the search:
entity_info_cache_clear field_cache_clear field_info_cache_clear field entity info cache clear
Impacts:
Module developers