You are here

public function PagerSelectExtender::getElement in Drupal 10

Same name and namespace in other branches
  1. 9 core/lib/Drupal/Core/Database/Query/PagerSelectExtender.php \Drupal\Core\Database\Query\PagerSelectExtender::getElement()

Gets the element ID for this pager query.

The element is used to differentiate different pager queries on the same page so that they may be operated independently.

Return value

int Element ID that is used to differentiate between different pager queries.

File

core/lib/Drupal/Core/Database/Query/PagerSelectExtender.php, line 174

Class

PagerSelectExtender
Query extender for pager queries.

Namespace

Drupal\Core\Database\Query

Code

public function getElement() : int {
  $this
    ->ensureElement();
  return $this->element;
}