AliasStorageInterface deprecated
interface AliasStorageInterface (View source)
deprecated
Provides a class for CRUD operations on path aliases.
Methods
Saves a path alias to the database.
Fetches a specific URL alias from the database.
Deletes a URL alias.
Pre-loads path alias information for a given list of source paths.
Returns an alias of Drupal system URL.
Returns Drupal system URL of an alias.
Checks if alias already exists.
Checks if there are any aliases with language defined.
Loads aliases for admin listing.
Check if any alias exists starting with $initial_substring.
Details
array|false
save(string $source, string $alias, string $langcode = LanguageInterface::LANGCODE_NOT_SPECIFIED, int|null $pid = NULL)
Saves a path alias to the database.
array|false
load(array $conditions)
Fetches a specific URL alias from the database.
The default implementation performs case-insensitive matching on the 'source' and 'alias' strings.
delete(array $conditions)
Deletes a URL alias.
The default implementation performs case-insensitive matching on the 'source' and 'alias' strings.
string[]
preloadPathAlias(array $preloaded, string $langcode)
Pre-loads path alias information for a given list of source paths.
string|false
lookupPathAlias(string $path, string $langcode)
Returns an alias of Drupal system URL.
The default implementation performs case-insensitive matching on the 'source' and 'alias' strings.
string|false
lookupPathSource(string $path, string $langcode)
Returns Drupal system URL of an alias.
The default implementation performs case-insensitive matching on the 'source' and 'alias' strings.
bool
aliasExists(string $alias, string $langcode, string|null $source = NULL)
Checks if alias already exists.
The default implementation performs case-insensitive matching on the 'source' and 'alias' strings.
bool
languageAliasExists()
Checks if there are any aliases with language defined.
array
getAliasesForAdminListing(array $header, string|null $keys = NULL)
Loads aliases for admin listing.
bool
pathHasMatchingAlias(string $initial_substring)
Check if any alias exists starting with $initial_substring.