function PathAliasMenuLinkContentTest::register
Same name in other branches
- 8.9.x core/modules/menu_link_content/tests/src/Kernel/PathAliasMenuLinkContentTest.php \Drupal\Tests\menu_link_content\Kernel\PathAliasMenuLinkContentTest::register()
Overrides KernelTestBase::register
File
-
core/
modules/ menu_link_content/ tests/ src/ Kernel/ PathAliasMenuLinkContentTest.php, line 51
Class
- PathAliasMenuLinkContentTest
- Ensures that the menu tree adapts to path alias changes.
Namespace
Drupal\Tests\menu_link_content\KernelCode
public function register(ContainerBuilder $container) {
parent::register($container);
$definition = $container->getDefinition('path_alias.path_processor');
$definition->addTag('path_processor_inbound', [
'priority' => 100,
]);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.