/** * {inheritdoc}. */ public function getCacheTags() { $tags = parent::getCacheTags(); if (!empty($this->configuration['block_visibility_group'])) { if ($group = $this->entityStorage->load($this->configuration['block_visibility_group'])) { $tags = Cache::mergeTags($tags, $group->getCacheTags()); } } return $tags; }