function layout_builder_test_system_breadcrumb_alter in Drupal 10
Same name and namespace in other branches
- 9 core/modules/layout_builder/tests/modules/layout_builder_test/layout_builder_test.module \layout_builder_test_system_breadcrumb_alter()
Implements hook_system_breadcrumb_alter().
File
- core/
modules/ layout_builder/ tests/ modules/ layout_builder_test/ layout_builder_test.module, line 117 - Provides hook implementations for Layout Builder tests.
Code
function layout_builder_test_system_breadcrumb_alter(Breadcrumb &$breadcrumb, RouteMatchInterface $route_match, array $context) {
$breadcrumb
->addLink(Link::fromTextAndUrl('External link', Url::fromUri('http://www.example.com')));
}