protected function GroupPermissionsRoleSpecificForm::getGroupRoles in Group 8
Same name and namespace in other branches
- 2.0.x src/Form/GroupPermissionsRoleSpecificForm.php \Drupal\group\Form\GroupPermissionsRoleSpecificForm::getGroupRoles()
Gets the group roles to display in this form.
Return value
\Drupal\group\Entity\GroupRoleInterface[] An array of group role objects.
Overrides GroupPermissionsForm::getGroupRoles
File
- src/
Form/ GroupPermissionsRoleSpecificForm.php, line 30
Class
- GroupPermissionsRoleSpecificForm
- Provides the user permissions administration form for a specific group role.
Namespace
Drupal\group\FormCode
protected function getGroupRoles() {
return [
$this->groupRole
->id() => $this->groupRole,
];
}