function AliasStorage::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 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;
}

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