function AccessPolicyProcessorInterface::processAccessPolicies

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

Processes the access policies for an account within a given scope.

Parameters

\Drupal\Core\Session\AccountInterface $account: The user account for which to calculate the permissions.

string $scope: (optional) The scope to calculate the permissions, defaults to 'drupal'.

Return value

\Drupal\Core\Session\CalculatedPermissionsInterface The access policies' permissions within the given scope.

1 method overrides AccessPolicyProcessorInterface::processAccessPolicies()
AccessPolicyProcessor::processAccessPolicies in core/lib/Drupal/Core/Session/AccessPolicyProcessor.php
Processes the access policies for an account within a given scope.

File

core/lib/Drupal/Core/Session/AccessPolicyProcessorInterface.php, line 29

Class

AccessPolicyProcessorInterface
Processes all added access policies until the full permissions are built.

Namespace

Drupal\Core\Session

Code

public function processAccessPolicies(AccountInterface $account, string $scope = AccessPolicyInterface::SCOPE_DRUPAL) : CalculatedPermissionsInterface;

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