public function MongodbPathAliasStorage::preloadPathAlias in MongoDB 8
Pre-loads path alias information for a given list of source paths.
Parameters
array $preloaded: 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[] Source (keys) to alias (values) mapping.
Overrides AliasStorageInterface::preloadPathAlias
File
- src/
MongodbPathAliasStorage.php, line 124 - Contains Drupal\mongodb\Path.
Class
- MongodbPathAliasStorage
- Provides a class for CRUD operations on path aliases in MongoDB.
Namespace
Drupal\mongodbCode
public function preloadPathAlias($preloaded, $langcode) {
$args['source']['$in'] = $preloaded;
return $this
->mongodbAliasQuery($args, $langcode);
}