function AccessPolicyProcessor::addAccessPolicy

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

Overrides AccessPolicyProcessorInterface::addAccessPolicy

File

core/lib/Drupal/Core/Session/AccessPolicyProcessor.php, line 33

Class

AccessPolicyProcessor
Processes access policies into permissions for an account.

Namespace

Drupal\Core\Session

Code

public function addAccessPolicy(AccessPolicyInterface $access_policy) : void {
    $this->accessPolicies[] = $access_policy;
}

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