WorkspacesAliasRepository
class WorkspacesAliasRepository extends AliasRepository (View source)
Provides workspace-specific path alias lookup queries.
Properties
| protected Connection | $connection | The database connection. |
from AliasRepository |
| protected WorkspaceManagerInterface | $workspaceManager | The workspace manager. |
Methods
Pre-loads path alias information for a given list of system paths.
Searches a path alias for a given Drupal system path.
Searches a path alias for a given alias.
Check if any alias exists starting with $initial_substring.
Returns a SELECT query for the path_alias base table.
Adds path alias language fallback conditions to a select query object.
Details
__construct(Connection $connection)
Constructs an AliasRepository object.
string[]
preloadPathAlias(array $preloaded, string $langcode)
Pre-loads path alias information for a given list of system paths.
array|null
lookupBySystemPath(string $path, string $langcode)
Searches a path alias for a given Drupal system path.
The default implementation performs case-insensitive matching on the 'path' and 'alias' strings.
array|null
lookupByAlias(string $alias, string $langcode)
Searches a path alias for a given alias.
The default implementation performs case-insensitive matching on the 'path' and 'alias' strings.
bool
pathHasMatchingAlias(string $initial_substring)
Check if any alias exists starting with $initial_substring.
protected SelectInterface
getBaseQuery()
Returns a SELECT query for the path_alias base table.
protected
addLanguageFallback(SelectInterface $query, string $langcode)
Adds path alias language fallback conditions to a select query object.
$this
setWorkspacesManager(WorkspaceManagerInterface $workspace_manager)
Sets the workspace manager.