AliasStorage::schemaDefinition

public static AliasStorage::schemaDefinition() Defines the schema for the {url_alias} table. File core/lib/Drupal/Core/Path/AliasStorage.php, line 410 Class AliasStorage Provides a class for CRUD operations on path aliases. Namespace Drupal\Core\Path Code public static function schemaDefinition() { return [ 'description' => 'A list of URL aliases for Drupal paths; a user may visit either the source or destination path.', 'fields' => [ 'pid' => [ 'descri

AliasStorage::pathHasMatchingAlias

public AliasStorage::pathHasMatchingAlias($initial_substring) Check if any alias exists starting with $initial_substring. Parameters string $initial_substring: Initial path substring to test against. Return value bool TRUE if any alias exists, FALSE otherwise. Overrides AliasStorageInterface::pathHasMatchingAlias File core/lib/Drupal/Core/Path/AliasStorage.php, line 352 Class AliasStorage Provides a class for CRUD operations on path aliases. Namespace Drupal\Core\Path Code public fun

AliasStorage::TABLE

The table for the url_alias storage. File core/lib/Drupal/Core/Path/AliasStorage.php, line 24 Class AliasStorage Provides a class for CRUD operations on path aliases. Namespace Drupal\Core\Path Code const TABLE = 'url_alias';

AliasStorage::preloadPathAlias

public AliasStorage::preloadPathAlias($preloaded, $langcode) Pre-loads path alias information for a given list of source paths. Parameters array $preloaded: Paths that need preloading of aliases. string $langcode: Language code to search the path with. If there's no path defined for that language it will search paths without language. Return value string[] Source (keys) to alias (values) mapping. Overrides AliasStorageInterface::preloadPathAlias File core/lib/Drupal/Core/Path/AliasStorage.php

AliasStorage::save

public AliasStorage::save($source, $alias, $langcode = LanguageInterface::LANGCODE_NOT_SPECIFIED, $pid = NULL) Saves a path alias to the database. @thrown \InvalidArgumentException Thrown when either the source or alias has not a starting slash. Parameters string $source: The internal system path. string $alias: The URL alias. string $langcode: (optional) The language code of the alias. int|null $pid: (optional) Unique path alias identifier. Return value array|false FALSE if the path could no

AliasStorage::lookupPathSource

public AliasStorage::lookupPathSource($path, $langcode) Returns Drupal system URL of an alias. The default implementation performs case-insensitive matching on the 'source' and 'alias' strings. Parameters string $path: The path to investigate for corresponding system URLs. string $langcode: Language code to search the path with. If there's no path defined for that language it will search paths without language. Return value string|false A Drupal system path, or FALSE if no path was found. Ove

AliasStorage::lookupPathAlias

public AliasStorage::lookupPathAlias($path, $langcode) Returns an alias of Drupal system URL. The default implementation performs case-insensitive matching on the 'source' and 'alias' strings. Parameters string $path: The path to investigate for corresponding path aliases. string $langcode: Language code to search the path with. If there's no path defined for that language it will search paths without language. Return value string|false A path alias, or FALSE if no path was found. Overrides A

AliasStorage::languageAliasExists

public AliasStorage::languageAliasExists() Checks if there are any aliases with language defined. Return value bool TRUE if aliases with language exist. Overrides AliasStorageInterface::languageAliasExists File core/lib/Drupal/Core/Path/AliasStorage.php, line 314 Class AliasStorage Provides a class for CRUD operations on path aliases. Namespace Drupal\Core\Path Code public function languageAliasExists() { try { return (bool) $this->connection->queryRange('SELECT 1 FROM {ur

AliasStorage::load

public AliasStorage::load($conditions) Fetches a specific URL alias from the database. The default implementation performs case-insensitive matching on the 'source' and 'alias' strings. Parameters array $conditions: An array of query conditions. Return value array|false FALSE if no alias was found or an associative array containing the following keys: source (string): The internal system path with a starting slash. alias (string): The URL alias with a starting slash. pid (int): Unique path

AliasStorage::getAliasesForAdminListing

public AliasStorage::getAliasesForAdminListing($header, $keys = NULL) Loads aliases for admin listing. Parameters array $header: Table header. string|null $keys: (optional) Search keyword that may include one or more '*' as wildcard values. Return value array Array of items to be displayed on the current page. Overrides AliasStorageInterface::getAliasesForAdminListing File core/lib/Drupal/Core/Path/AliasStorage.php, line 327 Class AliasStorage Provides a class for CRUD operations on path