function AlwaysAddsAccessPolicy::getPersistentCacheContexts

Overrides AccessPolicyBase::getPersistentCacheContexts

File

core/tests/Drupal/Tests/Core/Session/AccessPolicyProcessorTest.php, line 530

Class

AlwaysAddsAccessPolicy
A test access policy that adds a permission.

Namespace

Drupal\Tests\Core\Session

Code

public function getPersistentCacheContexts() : array {
  return [
    'always',
  ];
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.