You are here

protected function PermissionsLockForm::getRoles in Permissions Lock 8

Gets the roles to display in this form.

Return value

\Drupal\user\RoleInterface[] An array of role objects.

File

src/Form/PermissionsLockForm.php, line 68

Class

PermissionsLockForm

Namespace

Drupal\permissions_lock\Form

Code

protected function getRoles() {
  return $this->roleStorage
    ->loadMultiple();
}