public function Group::getCacheTags in Organic groups 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 ArgumentDefaultPluginBase::getCacheTags
File
- src/
Plugin/ views/ argument_default/ Group.php, line 108
Class
- Group
- Default argument plugin to provide the group from the current context.
Namespace
Drupal\og\Plugin\views\argument_defaultCode
public function getCacheTags() {
$group = $this
->getGroup();
if ($group instanceof ContentEntityInterface) {
return Cache::buildTags('og-group-content', $group
->getCacheTagsToInvalidate());
}
return [];
}