function PathAliasMenuLinkContentTest::register

Same name and namespace in other branches
  1. 8.9.x core/modules/menu_link_content/tests/src/Kernel/PathAliasMenuLinkContentTest.php \Drupal\Tests\menu_link_content\Kernel\PathAliasMenuLinkContentTest::register()

Registers test-specific services.

Extend this method in your test to register additional services. This method is called whenever the kernel is rebuilt.

Parameters

\Drupal\Core\DependencyInjection\ContainerBuilder $container: The service container to enhance.

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\Kernel

Code

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.