class LayoutBuilderTestMenuHooks
Same name and namespace in other branches
- 11.x core/modules/layout_builder/tests/modules/layout_builder_test/src/Hook/LayoutBuilderTestMenuHooks.php \Drupal\layout_builder_test\Hook\LayoutBuilderTestMenuHooks
Menu hook implementations for layout_builder_test.
Hierarchy
- class \Drupal\layout_builder_test\Hook\LayoutBuilderTestMenuHooks
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\HookView 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.