function BazAccessPolicy::getPersistentCacheContexts

Same name in other branches
  1. 11.x core/tests/Drupal/Tests/Core/Session/AccessPolicyProcessorTest.php \Drupal\Tests\Core\Session\BazAccessPolicy::getPersistentCacheContexts()

Overrides AccessPolicyBase::getPersistentCacheContexts

File

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

Class

BazAccessPolicy

Namespace

Drupal\Tests\Core\Session

Code

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

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