function Access::getCacheContexts
Overrides FilterPluginBase::getCacheContexts
File
-
core/
modules/ node/ src/ Plugin/ views/ filter/ Access.php, line 59
Class
- Access
- Filter by node_access records.
Namespace
Drupal\node\Plugin\views\filterCode
public function getCacheContexts() {
$contexts = parent::getCacheContexts();
$contexts[] = 'user.node_grants:view';
return $contexts;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.