function MockAliasManager::getPathByAlias
Same name in other branches
- 8.9.x core/modules/system/src/Tests/Routing/MockAliasManager.php \Drupal\system\Tests\Routing\MockAliasManager::getPathByAlias()
- 10 core/modules/system/src/Tests/Routing/MockAliasManager.php \Drupal\system\Tests\Routing\MockAliasManager::getPathByAlias()
- 11.x core/modules/system/src/Tests/Routing/MockAliasManager.php \Drupal\system\Tests\Routing\MockAliasManager::getPathByAlias()
Overrides AliasManagerInterface::getPathByAlias
File
-
core/
modules/ system/ src/ Tests/ Routing/ MockAliasManager.php, line 67
Class
- MockAliasManager
- An easily configurable mock alias manager.
Namespace
Drupal\system\Tests\RoutingCode
public function getPathByAlias($alias, $langcode = NULL) {
$langcode = $langcode ?: $this->defaultLanguage;
return $this->systemPaths[$alias][$langcode];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.