function Status::getCacheContexts
Same name in this branch
- 8.9.x core/modules/media/src/Plugin/views/filter/Status.php \Drupal\media\Plugin\views\filter\Status::getCacheContexts()
Same name in other branches
- 9 core/modules/media/src/Plugin/views/filter/Status.php \Drupal\media\Plugin\views\filter\Status::getCacheContexts()
- 9 core/modules/node/src/Plugin/views/filter/Status.php \Drupal\node\Plugin\views\filter\Status::getCacheContexts()
- 10 core/modules/media/src/Plugin/views/filter/Status.php \Drupal\media\Plugin\views\filter\Status::getCacheContexts()
- 10 core/modules/node/src/Plugin/views/filter/Status.php \Drupal\node\Plugin\views\filter\Status::getCacheContexts()
- 11.x core/modules/media/src/Plugin/views/filter/Status.php \Drupal\media\Plugin\views\filter\Status::getCacheContexts()
- 11.x core/modules/node/src/Plugin/views/filter/Status.php \Drupal\node\Plugin\views\filter\Status::getCacheContexts()
Overrides FilterPluginBase::getCacheContexts
File
-
core/
modules/ node/ src/ Plugin/ views/ filter/ Status.php, line 37
Class
- Status
- Filter by published status.
Namespace
Drupal\node\Plugin\views\filterCode
public function getCacheContexts() {
$contexts = parent::getCacheContexts();
$contexts[] = 'user';
return $contexts;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.