function AliasRepository::getBaseQuery

Same name in other branches
  1. 9 core/modules/path_alias/src/AliasRepository.php \Drupal\path_alias\AliasRepository::getBaseQuery()
  2. 10 core/modules/path_alias/src/AliasRepository.php \Drupal\path_alias\AliasRepository::getBaseQuery()
  3. 11.x core/modules/path_alias/src/AliasRepository.php \Drupal\path_alias\AliasRepository::getBaseQuery()

Returns a SELECT query for the path_alias base table.

Return value

\Drupal\Core\Database\Query\SelectInterface A Select query object.

1 call to AliasRepository::getBaseQuery()
AliasRepository::pathHasMatchingAlias in core/lib/Drupal/Core/Path/AliasRepository.php
Check if any alias exists starting with $initial_substring.

File

core/lib/Drupal/Core/Path/AliasRepository.php, line 121

Class

AliasRepository
Provides the default path alias lookup operations.

Namespace

Drupal\Core\Path

Code

protected function getBaseQuery() {
    $query = $this->connection
        ->select('path_alias', 'base_table');
    $query->condition('base_table.status', 1);
    return $query;
}

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