You are here

public function AliasRepositoryInterface::preloadPathAlias in Drupal 9

Pre-loads path alias information for a given list of system paths.

Parameters

array $preloaded: System 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[] System paths (keys) to alias (values) mapping.

1 method overrides AliasRepositoryInterface::preloadPathAlias()
AliasRepository::preloadPathAlias in core/modules/path_alias/src/AliasRepository.php
Pre-loads path alias information for a given list of system paths.

File

core/modules/path_alias/src/AliasRepositoryInterface.php, line 32

Class

AliasRepositoryInterface
Provides an interface for path alias lookup operations.

Namespace

Drupal\path_alias

Code

public function preloadPathAlias($preloaded, $langcode);