function AccessPolicyBase::applies

Same name in other branches
  1. 10 core/lib/Drupal/Core/Session/AccessPolicyBase.php \Drupal\Core\Session\AccessPolicyBase::applies()

Overrides AccessPolicyInterface::applies

7 methods override AccessPolicyBase::applies()
AlwaysAddsAccessPolicy::applies in core/tests/Drupal/Tests/Core/Session/AccessPolicyProcessorTest.php
Checks whether this access policy applies to a given scope.
AlwaysAltersAccessPolicy::applies in core/tests/Drupal/Tests/Core/Session/AccessPolicyProcessorTest.php
Checks whether this access policy applies to a given scope.
BarAccessPolicy::applies in core/tests/Drupal/Tests/Core/Session/AccessPolicyProcessorTest.php
Checks whether this access policy applies to a given scope.
BarAlterAccessPolicy::applies in core/tests/Drupal/Tests/Core/Session/AccessPolicyProcessorTest.php
Checks whether this access policy applies to a given scope.
BazAccessPolicy::applies in core/tests/Drupal/Tests/Core/Session/AccessPolicyProcessorTest.php
Checks whether this access policy applies to a given scope.

... See full list

File

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

Class

AccessPolicyBase
Base class for access policies.

Namespace

Drupal\Core\Session

Code

public function applies(string $scope) : bool {
    return $scope === AccessPolicyInterface::SCOPE_DRUPAL;
}

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