function AliasRepositoryInterface::preloadPathAlias

Same name in other branches
  1. 8.9.x core/lib/Drupal/Core/Path/AliasRepositoryInterface.php \Drupal\Core\Path\AliasRepositoryInterface::preloadPathAlias()
  2. 10 core/modules/path_alias/src/AliasRepositoryInterface.php \Drupal\path_alias\AliasRepositoryInterface::preloadPathAlias()
  3. 11.x core/modules/path_alias/src/AliasRepositoryInterface.php \Drupal\path_alias\AliasRepositoryInterface::preloadPathAlias()

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);

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.