function AccessPolicyInterface::applies

Same name in other branches
  1. 11.x core/lib/Drupal/Core/Session/AccessPolicyInterface.php \Drupal\Core\Session\AccessPolicyInterface::applies()

Checks whether this access policy applies to a given scope.

Parameters

string $scope: The scope to check for.

Return value

bool Whether this access policy applies to the given scope.

1 method overrides AccessPolicyInterface::applies()
AccessPolicyBase::applies in core/lib/Drupal/Core/Session/AccessPolicyBase.php
Checks whether this access policy applies to a given scope.

File

core/lib/Drupal/Core/Session/AccessPolicyInterface.php, line 35

Class

AccessPolicyInterface
Defines the access policy interface.

Namespace

Drupal\Core\Session

Code

public function applies(string $scope) : bool;

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