function PathAliasListBuilder::getEntityIds

Same name in other branches
  1. 9 core/modules/path/src/PathAliasListBuilder.php \Drupal\path\PathAliasListBuilder::getEntityIds()
  2. 8.9.x core/modules/path/src/PathAliasListBuilder.php \Drupal\path\PathAliasListBuilder::getEntityIds()
  3. 10 core/modules/path/src/PathAliasListBuilder.php \Drupal\path\PathAliasListBuilder::getEntityIds()

Overrides EntityListBuilder::getEntityIds

File

core/modules/path/src/PathAliasListBuilder.php, line 94

Class

PathAliasListBuilder
Defines a class to build a listing of path_alias entities.

Namespace

Drupal\path

Code

protected function getEntityIds() {
    $query = $this->getStorage()
        ->getQuery()
        ->accessCheck(TRUE);
    $search = $this->currentRequest->query
        ->get('search');
    if ($search) {
        $query->condition('alias', $search, 'CONTAINS');
    }
    // Only add the pager if a limit is specified.
    if ($this->limit) {
        $query->pager($this->limit);
    }
    // Allow the entity query to sort using the table header.
    $header = $this->buildHeader();
    $query->tableSort($header);
    return $query->execute();
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.