You are here

protected function GroupBaseForm::getgroupId in Entity Share 8

Same name and namespace in other branches
  1. 8.3 modules/entity_share_server/src/Form/GroupBaseForm.php \Drupal\entity_share_server\Form\GroupBaseForm::getgroupId()
  2. 8.2 modules/entity_share_server/src/Form/GroupBaseForm.php \Drupal\entity_share_server\Form\GroupBaseForm::getgroupId()

Retrieves the group that is being edited.

Return value

string The group id.

3 calls to GroupBaseForm::getgroupId()
GroupBaseForm::groupIdExists in modules/entity_share_server/src/Form/GroupBaseForm.php
Check if the group exists.
GroupDeleteForm::form in modules/entity_share_server/src/Form/GroupDeleteForm.php
Gets the actual form array to be built.
GroupEditForm::form in modules/entity_share_server/src/Form/GroupEditForm.php
Gets the actual form array to be built.

File

modules/entity_share_server/src/Form/GroupBaseForm.php, line 96

Class

GroupBaseForm
Class GroupBaseForm.

Namespace

Drupal\entity_share_server\Form

Code

protected function getgroupId() {
  if (!isset($this->groupId)) {
    $this->groupId = $this
      ->getRequest()->attributes
      ->get('group');
  }
  return $this->groupId;
}