You are here

protected function AliasRepository::getBaseQuery in Drupal 8

Returns a SELECT query for the path_alias base table.

Return value

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

5 calls to AliasRepository::getBaseQuery()
AliasRepository::pathHasMatchingAlias in core/lib/Drupal/Core/Path/AliasRepository.php
Check if any alias exists starting with $initial_substring.
WorkspacesAliasRepository::getBaseQuery in core/modules/workspaces/src/WorkspacesAliasRepository.php
Returns a SELECT query for the path_alias base table.
WorkspacesAliasRepository::getBaseQuery in core/modules/workspaces/src/WorkspacesAliasRepository.php
Returns a SELECT query for the path_alias base table.
WorkspacesAliasRepository::getBaseQuery in core/modules/workspaces/src/WorkspacesAliasRepository.php
Returns a SELECT query for the path_alias base table.
WorkspacesAliasRepository::getBaseQuery in core/modules/workspaces/src/WorkspacesAliasRepository.php
Returns a SELECT query for the path_alias base table.
1 method overrides AliasRepository::getBaseQuery()
WorkspacesAliasRepository::getBaseQuery in core/modules/workspaces/src/WorkspacesAliasRepository.php
Returns a SELECT query for the path_alias base table.

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;
}