public AliasStorage::languageAliasExists()
Checks if there are any aliases with language defined.
bool TRUE if aliases with language exist.
Overrides AliasStorageInterface::languageAliasExists
public function languageAliasExists() { try { return (bool) $this->connection->queryRange('SELECT 1 FROM {url_alias} WHERE langcode <> :langcode', 0, 1, array(':langcode' => LanguageInterface::LANGCODE_NOT_SPECIFIED))->fetchField(); } catch (\Exception $e) { $this->catchException($e); return FALSE; } }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Path!AliasStorage.php/function/AliasStorage::languageAliasExists/8.1.x