function d8cache_disable_cache_tags_for_entity_load in Drupal 8 Cache Backport 7
Temporarily disable adding of cache tags during entity loading.
File
- includes/
entity.inc, line 80 - Entity functions and hooks for the D8 caching system backport.
Code
function d8cache_disable_cache_tags_for_entity_load($new_state = NULL) {
$state =& drupal_static('d8cache_entity_load', FALSE);
$old_state = $state;
if ($new_state !== NULL) {
$state = $new_state;
}
return $old_state;
}