function AccessPolicyBase::getPersistentCacheContexts

Same name in other branches
  1. 11.x core/lib/Drupal/Core/Session/AccessPolicyBase.php \Drupal\Core\Session\AccessPolicyBase::getPersistentCacheContexts()

Overrides AccessPolicyInterface::getPersistentCacheContexts

1 call to AccessPolicyBase::getPersistentCacheContexts()
AccessPolicyBase::calculatePermissions in core/lib/Drupal/Core/Session/AccessPolicyBase.php
9 methods override AccessPolicyBase::getPersistentCacheContexts()
AlwaysAddsAccessPolicy::getPersistentCacheContexts in core/tests/Drupal/Tests/Core/Session/AccessPolicyProcessorTest.php
AlwaysAltersAccessPolicy::getPersistentCacheContexts in core/tests/Drupal/Tests/Core/Session/AccessPolicyProcessorTest.php
BarAccessPolicy::getPersistentCacheContexts in core/tests/Drupal/Tests/Core/Session/AccessPolicyProcessorTest.php
BazAccessPolicy::getPersistentCacheContexts in core/tests/Drupal/Tests/Core/Session/AccessPolicyProcessorTest.php
FooAccessPolicy::getPersistentCacheContexts in core/tests/Drupal/Tests/Core/Session/AccessPolicyProcessorTest.php

... See full list

File

core/lib/Drupal/Core/Session/AccessPolicyBase.php, line 32

Class

AccessPolicyBase
Base class for access policies.

Namespace

Drupal\Core\Session

Code

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

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