You are here

public function PhotosAccess::getCacheTags in Album Photos 8.5

Same name and namespace in other branches
  1. 6.0.x photos_access/src/Plugin/views/access/PhotosAccess.php \Drupal\photos_access\Plugin\views\access\PhotosAccess::getCacheTags()

The cache tags associated with this object.

When this object is modified, these cache tags will be invalidated.

Return value

string[] A set of cache tags.

Overrides CacheableDependencyInterface::getCacheTags

File

photos_access/src/Plugin/views/access/PhotosAccess.php, line 154

Class

PhotosAccess
Access plugin for photos album and images.

Namespace

Drupal\photos_access\Plugin\views\access

Code

public function getCacheTags() {
  $nid = $this->routeMatch
    ->getRawParameter('node');
  return [
    'photos:album:' . $nid,
    'node:' . $nid,
  ];
}