/**
  * {@inheritdoc}
  */
 public function getCacheTags()
 {
     // The theme-specific cache tag is set automatically for each block, but the
     // output of this block also depends on the global theme settings.
     $tags = array('theme_global_setting' => TRUE);
     return NestedArray::mergeDeep(parent::getCacheTags(), $tags);
 }
Beispiel #2
0
 /**
  * {@inheritdoc}
  */
 public function getCacheTags()
 {
     // Even when the menu block renders to the empty string for a user, we want
     // the cache tag for this menu to be set: whenever the menu is changed, this
     // menu block must also be re-rendered for that user, because maybe a menu
     // link that is accessible for that user has been added.
     $tags = array('menu' => array($this->getDerivativeId()));
     return NestedArray::mergeDeep(parent::getCacheTags(), $tags);
 }
 /**
  * {@inheritdoc}
  */
 public function getCacheTags()
 {
     $cache_tags = parent::getCacheTags();
     $feed = $this->feedStorage->load($this->configuration['feed']);
     $cache_tags = NestedArray::mergeDeep($cache_tags, $feed->getCacheTag());
     return $cache_tags;
 }