You are here

function _d8cache_views_get_cache_tags in Drupal 8 Cache Backport 7

Get the cache tags for a view.

1 call to _d8cache_views_get_cache_tags()
d8cache_views_pre_render in includes/views.inc
Implements hook_views_pre_render().

File

includes/views.inc, line 23
Views hooks for the D8 caching system backport.

Code

function _d8cache_views_get_cache_tags($view) {
  return array(
    'views:' . $view->name,
    'views:' . $view->name . '.' . $view->current_display,
  );
}