You are here

protected function GroupPermissionsRoleSpecificForm::getGroupRoles in Group 2.0.x

Same name and namespace in other branches
  1. 8 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\Form

Code

protected function getGroupRoles() {
  return [
    $this->groupRole
      ->id() => $this->groupRole,
  ];
}