function ModerationStateFilter::getCacheTags

Same name and namespace in other branches
  1. 9 core/modules/content_moderation/src/Plugin/views/filter/ModerationStateFilter.php \Drupal\content_moderation\Plugin\views\filter\ModerationStateFilter::getCacheTags()
  2. 8.9.x core/modules/content_moderation/src/Plugin/views/filter/ModerationStateFilter.php \Drupal\content_moderation\Plugin\views\filter\ModerationStateFilter::getCacheTags()
  3. 11.x core/modules/content_moderation/src/Plugin/views/filter/ModerationStateFilter.php \Drupal\content_moderation\Plugin\views\filter\ModerationStateFilter::getCacheTags()

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\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.