function BarAlterAccessPolicy::applies

Same name in other branches
  1. 10 core/tests/Drupal/Tests/Core/Session/AccessPolicyProcessorTest.php \Drupal\Tests\Core\Session\BarAlterAccessPolicy::applies()

Overrides AccessPolicyBase::applies

File

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

Class

BarAlterAccessPolicy

Namespace

Drupal\Tests\Core\Session

Code

public function applies(string $scope) : bool {
    return $scope === 'bar' || $scope === 'anything';
}

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