You are here

public function ShsTermCacheDependency::__construct in Simple hierarchical select 2.0.x

Same name and namespace in other branches
  1. 8 src/Cache/ShsTermCacheDependency.php \Drupal\shs\Cache\ShsTermCacheDependency::__construct()

File

src/Cache/ShsTermCacheDependency.php, line 16

Class

ShsTermCacheDependency
Cacheable dependency object for term data.

Namespace

Drupal\shs\Cache

Code

public function __construct($tags = []) {
  $this->contexts = [
    'languages:language_interface',
  ];
  $this->tags = Cache::mergeTags([
    'taxonomy_term_values',
  ], $tags);
  $this->maxAge = Cache::PERMANENT;
}