You are here

public function EntityQueueRelationship::getCacheTags in Entityqueue 8

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

src/Plugin/views/relationship/EntityQueueRelationship.php, line 129

Class

EntityQueueRelationship
A relationship handler for entity queues.

Namespace

Drupal\entityqueue\Plugin\views\relationship

Code

public function getCacheTags() {
  $tags = [];
  if ($this->options['limit_queue']) {
    $queue = EntityQueue::load($this->options['limit_queue']);
    $tags = $queue
      ->getCacheTags();
  }
  return $tags;
}