function BarAccessPolicy::getPersistentCacheContexts
Overrides AccessPolicyBase::getPersistentCacheContexts
File
-
core/
tests/ Drupal/ Tests/ Core/ Session/ AccessPolicyProcessorTest.php, line 458
Class
- BarAccessPolicy
- A test access policy for 'foo' and 'bar' permissions.
Namespace
Drupal\Tests\Core\SessionCode
public function getPersistentCacheContexts() : array {
return [
'bar',
];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.