public function PathAliasMenuLinkContentTest::containerBuild in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/menu_link_content/src/Tests/PathAliasMenuLinkContentTest.php \Drupal\menu_link_content\Tests\PathAliasMenuLinkContentTest::containerBuild()
Sets up the base service container for this test.
Extend this method in your test to register additional service overrides that need to persist a DrupalKernel reboot. This method is called whenever the kernel is rebuilt.
Overrides KernelTestBase::containerBuild
See also
\Drupal\simpletest\KernelTestBase::setUp()
\Drupal\simpletest\KernelTestBase::enableModules()
\Drupal\simpletest\KernelTestBase::disableModules()
File
- core/
modules/ menu_link_content/ src/ Tests/ PathAliasMenuLinkContentTest.php, line 45 - Contains \Drupal\menu_link_content\Tests\PathAliasMenuLinkContentTest.
Class
- PathAliasMenuLinkContentTest
- Ensures that the menu tree adapts to path alias changes.
Namespace
Drupal\menu_link_content\TestsCode
public function containerBuild(ContainerBuilder $container) {
parent::containerBuild($container);
$definition = $container
->getDefinition('path_processor_alias');
$definition
->addTag('path_processor_inbound', [
'priority' => 100,
]);
}