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
Namespace
Drupal\permissions_lock\FormCode
protected function getRoles() {
return $this->roleStorage
->loadMultiple();
}