public function MockAliasManager::cacheClear in Drupal 9
Same name and namespace in other branches
- 8 core/modules/system/src/Tests/Routing/MockAliasManager.php \Drupal\system\Tests\Routing\MockAliasManager::cacheClear()
- 10 core/modules/system/src/Tests/Routing/MockAliasManager.php \Drupal\system\Tests\Routing\MockAliasManager::cacheClear()
Clears the static caches in alias manager and rebuilds the whitelist.
Parameters
$source: Source path of the alias that is being inserted/updated. If omitted, the entire lookup static cache will be cleared and the whitelist will be rebuilt.
Overrides AliasManagerInterface::cacheClear
File
- core/
modules/ system/ src/ Tests/ Routing/ MockAliasManager.php, line 92
Class
- MockAliasManager
- An easily configurable mock alias manager.
Namespace
Drupal\system\Tests\RoutingCode
public function cacheClear($source = NULL) {
// Not needed.
}