function FooAccessPolicy::getPersistentCacheContexts

Overrides AccessPolicyBase::getPersistentCacheContexts

File

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

Class

FooAccessPolicy

Namespace

Drupal\Tests\Core\Session

Code

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

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