function eva_views_invalidate_cache in EVA: Entity Views Attachment 8
Same name and namespace in other branches
- 8.2 eva.module \eva_views_invalidate_cache()
Clear the field cache when view cache clears this is intended to fire when a View is saved
File
- ./
eva.module, line 281 - Module implementing EVA extra field and views display
Code
function eva_views_invalidate_cache() {
_eva_clear_detached();
// see https://www.drupal.org/node/2281897
\Drupal::entityManager()
->clearCachedFieldDefinitions();
}