function LayoutBuilderTestHooks::systemBreadcrumbAlter

Implements hook_system_breadcrumb_alter().

File

core/modules/layout_builder/tests/modules/layout_builder_test/src/Hook/LayoutBuilderTestHooks.php, line 118

Class

LayoutBuilderTestHooks
Hook implementations for layout_builder_test.

Namespace

Drupal\layout_builder_test\Hook

Code

public function systemBreadcrumbAlter(Breadcrumb &$breadcrumb, RouteMatchInterface $route_match, array $context) : void {
    $breadcrumb->addLink(Link::fromTextAndUrl('External link', Url::fromUri('http://www.example.com')));
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.