function AliasStorage::languageAliasExists

Overrides AliasStorageInterface::languageAliasExists

File

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

Class

AliasStorage
Provides a class for CRUD operations on path aliases.

Namespace

Drupal\Core\Path

Code

public function languageAliasExists() {
    return (bool) $this->connection
        ->queryRange('SELECT 1 FROM {' . static::TABLE . '} WHERE langcode <> :langcode', 0, 1, [
        ':langcode' => LanguageInterface::LANGCODE_NOT_SPECIFIED,
    ])
        ->fetchField();
}

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