You are here

protected function SortBaseForm::getsortId in Entity Share 8.2

Same name and namespace in other branches
  1. 8.3 modules/entity_share_server/src/Form/SortBaseForm.php \Drupal\entity_share_server\Form\SortBaseForm::getsortId()
  2. 8 modules/entity_share_server/src/Form/SortBaseForm.php \Drupal\entity_share_server\Form\SortBaseForm::getsortId()

Retrieves the sort that is being edited.

Return value

string The sort id.

3 calls to SortBaseForm::getsortId()
SortBaseForm::sortIdExists in modules/entity_share_server/src/Form/SortBaseForm.php
Check if the sort exists.
SortDeleteForm::form in modules/entity_share_server/src/Form/SortDeleteForm.php
Gets the actual form array to be built.
SortEditForm::form in modules/entity_share_server/src/Form/SortEditForm.php
Gets the actual form array to be built.

File

modules/entity_share_server/src/Form/SortBaseForm.php, line 71

Class

SortBaseForm
Class SortBaseForm.

Namespace

Drupal\entity_share_server\Form

Code

protected function getsortId() {
  if (!isset($this->sortId)) {
    $this->sortId = $this
      ->getRequest()->attributes
      ->get('sort');
  }
  return $this->sortId;
}