AliasStorage::ensureTableExists

protected AliasStorage::ensureTableExists() Check if the table exists and create it if not. File core/lib/Drupal/Core/Path/AliasStorage.php, line 371 Class AliasStorage Provides a class for CRUD operations on path aliases. Namespace Drupal\Core\Path Code protected function ensureTableExists() { try { $database_schema = $this->connection->schema(); if (!$database_schema->tableExists(static::TABLE)) { $schema_definition = $this->schemaDefinition(); $data

AliasStorage::delete

public AliasStorage::delete($conditions) Deletes a URL alias. The default implementation performs case-insensitive matching on the 'source' and 'alias' strings. Parameters array $conditions: An array of criteria. Overrides AliasStorageInterface::delete File core/lib/Drupal/Core/Path/AliasStorage.php, line 157 Class AliasStorage Provides a class for CRUD operations on path aliases. Namespace Drupal\Core\Path Code public function delete($conditions) { $path = $this->load($condition

AliasStorage::catchException

protected AliasStorage::catchException(\Exception $e) Act on an exception when url_alias might be stale. If the table does not yet exist, that's fine, but if the table exists and yet the query failed, then the url_alias is stale and the exception needs to propagate. Parameters $e: The exception. Throws \Exception File core/lib/Drupal/Core/Path/AliasStorage.php, line 401 Class AliasStorage Provides a class for CRUD operations on path aliases. Namespace Drupal\Core\Path Code protected

AliasStorage::aliasExists

public AliasStorage::aliasExists($alias, $langcode, $source = NULL) 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 AliasStorageInterface::aliasExists File core/lib/Drupal/Cor

AliasStorage::$moduleHandler

The module handler. Type: \Drupal\Core\Extension\ModuleHandlerInterface File core/lib/Drupal/Core/Path/AliasStorage.php, line 38 Class AliasStorage Provides a class for CRUD operations on path aliases. Namespace Drupal\Core\Path Code protected $moduleHandler;

AliasStorage::$connection

The database connection. Type: \Drupal\Core\Database\Connection File core/lib/Drupal/Core/Path/AliasStorage.php, line 31 Class AliasStorage Provides a class for CRUD operations on path aliases. Namespace Drupal\Core\Path Code protected $connection;

AliasStorage

Provides a class for CRUD operations on path aliases. All queries perform case-insensitive matching on the 'source' and 'alias' fields, so the aliases '/test-alias' and '/test-Alias' are considered to be the same, and will both refer to the same internal system path. Hierarchy class \Drupal\Core\Path\AliasStorage implements AliasStorageInterface File core/lib/Drupal/Core/Path/AliasStorage.php, line 19 Namespace Drupal\Core\Path Members Name Modifiers Type Description AliasStor

AliasManagerInterface::getPathByAlias

public AliasManagerInterface::getPathByAlias($alias, $langcode = NULL) Given the alias, return the path it represents. Parameters string $alias: An alias. string $langcode: An optional language code to look up the path in. Return value string The path represented by alias, or the alias if no path was found. Throws \InvalidArgumentException Thrown when the path does not start with a slash. File core/lib/Drupal/Core/Path/AliasManagerInterface.php, line 26 Class AliasManagerInterface Find

AliasManagerInterface::getAliasByPath

public AliasManagerInterface::getAliasByPath($path, $langcode = NULL) Given a path, return the alias. Parameters string $path: A path. string $langcode: An optional language code to look up the path in. Return value string An alias that represents the path, or path if no alias was found. Throws \InvalidArgumentException Thrown when the path does not start with a slash. File core/lib/Drupal/Core/Path/AliasManagerInterface.php, line 42 Class AliasManagerInterface Find an alias for a path

AliasManagerInterface::cacheClear

public AliasManagerInterface::cacheClear($source = NULL) Clear internal caches in alias manager. Parameters $source: Source path of the alias that is being inserted/updated. Can be omitted if entire cache needs to be flushed. File core/lib/Drupal/Core/Path/AliasManagerInterface.php, line 51 Class AliasManagerInterface Find an alias for a path and vice versa. Namespace Drupal\Core\Path Code public function cacheClear($source = NULL);