You are here

public function AuthorizationController::setAllProfiles in Authorization 8

Fetch and process all available profiles.

Saves the user account.

File

src/AuthorizationController.php, line 96

Class

AuthorizationController
Authorization controller.

Namespace

Drupal\authorization

Code

public function setAllProfiles() : void {
  $queryResults = $this->entityTypeManager
    ->getStorage('authorization_profile')
    ->getQuery()
    ->execute();
  foreach ($queryResults as $key => $value) {
    $this
      ->setIndividualProfile($key);
  }
}