function ModerationStateFilter::getCacheTags

Overrides FilterPluginBase::getCacheTags

File

core/modules/content_moderation/src/Plugin/views/filter/ModerationStateFilter.php, line 80

Class

ModerationStateFilter
Provides a filter for the moderation state of an entity.

Namespace

Drupal\content_moderation\Plugin\views\filter

Code

public function getCacheTags() {
  return Cache::mergeTags(parent::getCacheTags(), $this->entityTypeManager
    ->getDefinition('workflow')
    ->getListCacheTags());
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.