You are here

protected function AliasStorage::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.

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

File

core/lib/Drupal/Core/Path/AliasStorage.php, line 189

Class

AliasStorage
Provides a class for CRUD operations on path aliases.

Namespace

Drupal\Core\Path

Code

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