You are here

private function AuthorizationController::processAuthorizations in Authorization 8

Process Authorizations.

Parameters

\Drupal\authorization\Entity\AuthorizationProfile $profile: The profile to act upon.

bool $save_user: Save the user in the end.

2 calls to AuthorizationController::processAuthorizations()
AuthorizationController::queryIndividualProfile in src/AuthorizationController.php
Query a specific profile.
AuthorizationController::setIndividualProfile in src/AuthorizationController.php
Process a specific profile.

File

src/AuthorizationController.php, line 150

Class

AuthorizationController
Authorization controller.

Namespace

Drupal\authorization

Code

private function processAuthorizations(AuthorizationProfile $profile, $save_user) : void {
  if ($profile
    ->checkConditions()) {
    $this->processedAuthorizations[] = $profile
      ->grantsAndRevokes($this->user, $save_user);
  }
}