You are here

protected function GroupPermissionsRoleSpecificForm::getGroupType in Group 8

Same name and namespace in other branches
  1. 2.0.x src/Form/GroupPermissionsRoleSpecificForm.php \Drupal\group\Form\GroupPermissionsRoleSpecificForm::getGroupType()

Gets the group type to build the form for.

Return value

\Drupal\group\Entity\GroupTypeInterface The group type some or more roles belong to.

Overrides GroupPermissionsForm::getGroupType

File

src/Form/GroupPermissionsRoleSpecificForm.php, line 23

Class

GroupPermissionsRoleSpecificForm
Provides the user permissions administration form for a specific group role.

Namespace

Drupal\group\Form

Code

protected function getGroupType() {
  return $this->groupRole
    ->getGroupType();
}