function UserContextAccessPolicy::getPersistentCacheContexts

Same name and namespace in other branches
  1. 11.x core/tests/Drupal/Tests/Core/Session/AccessPolicyProcessorTest.php \Drupal\Tests\Core\Session\UserContextAccessPolicy::getPersistentCacheContexts()
  2. 10 core/tests/Drupal/Tests/Core/Session/AccessPolicyProcessorTest.php \Drupal\Tests\Core\Session\UserContextAccessPolicy::getPersistentCacheContexts()

File

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

Class

UserContextAccessPolicy
A test access policy class that sets a context.

Namespace

Drupal\Tests\Core\Session

Code

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

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