function _handy_cache_tags_clear_entity_tags in Handy cache tags 8
Helper to invalidate caches based on an entity.
7 calls to _handy_cache_tags_clear_entity_tags()
- CacheClearTest::testProceduralConfigEntityBundle in tests/
src/ Unit/ CacheClearTest.php - Test procedural with a config entity bundle.
- CacheClearTest::testProceduralFieldConfig in tests/
src/ Unit/ CacheClearTest.php - Test procedural with field config.
- CacheClearTest::testProceduralFieldStorageConfig in tests/
src/ Unit/ CacheClearTest.php - Test procedural with a config entity bundle.
- CacheClearTest::testProceduralRegularEntity in tests/
src/ Unit/ CacheClearTest.php - Tests procedural with no mocking.
- handy_cache_tags_entity_delete in ./
handy_cache_tags.module - Implements hook_entity_delete().
File
- ./
handy_cache_tags.module, line 39 - The module file for handy cache tags.
Code
function _handy_cache_tags_clear_entity_tags(EntityInterface $entity) {
/** @var \Drupal\handy_cache_tags\HandyCacheTagsHandler $handler */
$handler = \Drupal::service('handy_cache_tags.handler');
$handler
->invalidateEntity($entity);
}