You are here

public function SmartTag::getTagForView in Tome 8

Determines the cache tag for the given View.

Parameters

\Drupal\views\ViewExecutable $view: A View executable.

Return value

string The cache tag for the given View.

1 call to SmartTag::getTagForView()
SmartTag::getCacheTags in modules/tome_static/modules/tome_static_super_cache/src/Plugin/views/cache/SmartTag.php
Gets an array of cache tags for the current view.

File

modules/tome_static/modules/tome_static_super_cache/src/Plugin/views/cache/SmartTag.php, line 68

Class

SmartTag
Omits list cache tags from a View and expires cache on entity CRUD.

Namespace

Drupal\tome_static_super_cache\Plugin\views\cache

Code

public function getTagForView(ViewExecutable $view) {
  return implode(':', [
    'tome_static_super_cache_smart_tag',
    $view
      ->id(),
    $view->current_display,
  ]);
}