public function GroupMenuBlock::getCacheTags in Group Content Menu 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 ContextAwarePluginBase::getCacheTags
File
- src/
Plugin/ Block/ GroupMenuBlock.php, line 230
Class
- GroupMenuBlock
- Provides a generic Menu block.
Namespace
Drupal\group_content_menu\Plugin\BlockCode
public function getCacheTags() {
$tags = parent::getCacheTags();
if ($menu_name = $this
->getMenuName()) {
return Cache::mergeTags($tags, [
$menu_name,
]);
}
return $tags;
}