public function ModerationStateFilter::getCacheTags in Drupal 10
Same name and namespace in other branches
- 8 core/modules/content_moderation/src/Plugin/views/filter/ModerationStateFilter.php \Drupal\content_moderation\Plugin\views\filter\ModerationStateFilter::getCacheTags()
- 9 core/modules/content_moderation/src/Plugin/views/filter/ModerationStateFilter.php \Drupal\content_moderation\Plugin\views\filter\ModerationStateFilter::getCacheTags()
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 FilterPluginBase::getCacheTags
File
- core/
modules/ content_moderation/ src/ Plugin/ views/ filter/ ModerationStateFilter.php, line 79
Class
- ModerationStateFilter
- Provides a filter for the moderation state of an entity.
Namespace
Drupal\content_moderation\Plugin\views\filterCode
public function getCacheTags() {
return Cache::mergeTags(parent::getCacheTags(), $this->entityTypeManager
->getDefinition('workflow')
->getListCacheTags());
}