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