
| Current Path : /var/www/html/rocksensor/web/core/lib/Drupal/Core/Session/ |
Linux ift1.ift-informatik.de 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 |
| Current File : /var/www/html/rocksensor/web/core/lib/Drupal/Core/Session/AccessPolicyProcessorInterface.php |
<?php
namespace Drupal\Core\Session;
/**
* Processes all added access policies until the full permissions are built.
*/
interface AccessPolicyProcessorInterface {
/**
* Adds an access policy.
*
* @param \Drupal\Core\Session\AccessPolicyInterface $access_policy
* The access policy.
*/
public function addAccessPolicy(AccessPolicyInterface $access_policy): void;
/**
* Processes the access policies for an account within a given scope.
*
* @param \Drupal\Core\Session\AccountInterface $account
* The user account for which to calculate the permissions.
* @param string $scope
* (optional) The scope to calculate the permissions, defaults to 'drupal'.
*
* @return \Drupal\Core\Session\CalculatedPermissionsInterface
* The access policies' permissions within the given scope.
*/
public function processAccessPolicies(AccountInterface $account, string $scope = AccessPolicyInterface::SCOPE_DRUPAL): CalculatedPermissionsInterface;
}