function BarAccessPolicy::getPersistentCacheContexts

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

Overrides AccessPolicyBase::getPersistentCacheContexts

File

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

Class

BarAccessPolicy

Namespace

Drupal\Tests\Core\Session

Code

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

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