class LayoutBuilderTestMenuHooks

Menu hook implementations for layout_builder_test.

Hierarchy

Expanded class hierarchy of LayoutBuilderTestMenuHooks

File

core/modules/layout_builder/tests/modules/layout_builder_test/src/Hook/LayoutBuilderTestMenuHooks.php, line 17

Namespace

Drupal\layout_builder_test\Hook
View source
class LayoutBuilderTestMenuHooks {
  
  /**
   * Implements hook_system_breadcrumb_alter().
   */
  public function systemBreadcrumbAlter(Breadcrumb &$breadcrumb, RouteMatchInterface $route_match, array $context) : void {
    $breadcrumb->addLink(Link::fromTextAndUrl('External link', Url::fromUri('http://www.example.com')));
  }

}

Members

Title Sort descending Modifiers Object type Summary
LayoutBuilderTestMenuHooks::systemBreadcrumbAlter public function Implements hook_system_breadcrumb_alter().

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