'message' => '#^Method Drupal\\\\path_alias\\\\EventSubscriber\\\\PathAliasSubscriber\\:\\:onKernelController\\(\\) has no return type specified\\.$#',
'message' => '#^Method Drupal\\\\Tests\\\\path_alias\\\\Functional\\\\Rest\\\\PathAliasJsonAnonTest\\:\\:assertAuthenticationEdgeCases\\(\\) has no return type specified\\.$#',
* @deprecated in drupal:11.3.0 and is removed from drupal:13.0.0. There
* is no replacement.
* @see https://www.drupal.org/node/3532412
*/
publicfunctionsetCacheKey($key){
// Prefix the cache key to avoid clashes with other caches.
$this->cacheKey='preload-paths:'.$key;
@trigger_error(__METHOD__.' is deprecated in drupal:11.3.0 and is removed from drupal:13.0.0. There is no replacement. See https://www.drupal.org/node/3532412',E_USER_DEPRECATED);
}
/**
* {@inheritdoc}
* Writes to the per-page system path cache.
*
* Cache an array of the paths available on each page. We assume that aliases
* will be needed for the majority of these paths during subsequent requests,
* and load them in a single query during path alias lookup.
* @deprecated in drupal:11.3.0 and is removed from drupal:13.0.0. There
* is no replacement.
* @see https://www.drupal.org/node/3532412
*/
publicfunctionwriteCache(){
// Check if the paths for this page were loaded from cache in this request
@trigger_error(__METHOD__.' is deprecated in drupal:11.3.0 and is removed from drupal:13.0.0. There is no replacement. See https://www.drupal.org/node/3532412',E_USER_DEPRECATED);
}
/**
@@ -160,35 +122,27 @@ public function getAliasByPath($path, $langcode = NULL) {
return$path;
}
// During the first call to this method per language, load the expected
// paths for the page from cache.
if(empty($this->langcodePreloaded[$langcode])){
$this->langcodePreloaded[$langcode]=TRUE;
$this->lookupMap[$langcode]=[];
// Load the cached paths that should be used for preloading. This only
// happens if a cache key has been set.
if($this->preloadedPathLookups===FALSE){
$this->preloadedPathLookups=[];
if($this->cacheKey){
if($cached=$this->cache->get($this->cacheKey)){
$this->preloadedPathLookups=$cached->data;
}
else{
$this->cacheNeedsWriting=TRUE;
}
// If we already know that there are no aliases for this path simply return.
if(!empty($this->noAlias[$langcode][$path])){
return$path;
}
// If the alias has already been loaded, return it from static cache.