public function AuthorizationController::queryIndividualProfile in Authorization 8
Query a specific profile.
This does *not* save the user account. We need this to simulate granting to know that in some modes we want to abort any further actions (e.g. no valid proposals in exclusive mode and deny access set).
Parameters
string $profile_id: Authorization profile to act upon.
1 call to AuthorizationController::queryIndividualProfile()
- AuthorizationController::queryAllProfiles in src/
AuthorizationController.php - Fetch and query all available profiles.
File
- src/
AuthorizationController.php, line 116
Class
- AuthorizationController
- Authorization controller.
Namespace
Drupal\authorizationCode
public function queryIndividualProfile(string $profile_id) : void {
/** @var \Drupal\authorization\Entity\AuthorizationProfile $profile */
$profile = $this->entityTypeManager
->getStorage('authorization_profile')
->load($profile_id);
if ($profile) {
$this
->processAuthorizations($profile, FALSE);
}
else {
$this->logger
->error('Profile @profile could not be loaded.', [
'@profile' => $profile_id,
]);
}
}