You are here

public function LanguageNeutralAliasesStorage::aliasExists in Language neutral aliases 8

Checks if alias already exists.

The default implementation performs case-insensitive matching on the 'source' and 'alias' strings.

Parameters

string $alias: Alias to check against.

string $langcode: Language of the alias.

string|null $source: (optional) Path that alias is to be assigned to.

Return value

bool TRUE if alias already exists and FALSE otherwise.

Overrides AliasStorage::aliasExists

File

src/LanguageNeutralAliasesStorage.php, line 95

Class

LanguageNeutralAliasesStorage
Language neutral alias storage.

Namespace

Drupal\language_neutral_aliases

Code

public function aliasExists($alias, $langcode, $source = NULL) {
  return parent::aliasExists($alias, LanguageInterface::LANGCODE_NOT_SPECIFIED, $source);
}