diff --git a/core/lib/Drupal/Core/Menu/menu.api.php b/core/lib/Drupal/Core/Menu/menu.api.php index 65290ff..a2b8475 100644 --- a/core/lib/Drupal/Core/Menu/menu.api.php +++ b/core/lib/Drupal/Core/Menu/menu.api.php @@ -533,7 +533,7 @@ function hook_contextual_links_plugins_alter(array &$contextual_links) { /** * Perform alterations to the breadcrumb built by the BreadcrumbManager. * - * @param \Drupal\Core\Breadcrumb\Breadcrumb $breadcrumb + * @param \Drupal\Core\Breadcrumb\BreadcrumbInterface $breadcrumb * A breadcrumb object returned by the breadcrumb manager build method. * @param \Drupal\Core\Routing\RouteMatchInterface $route_match * The current route match. @@ -545,7 +545,7 @@ function hook_contextual_links_plugins_alter(array &$contextual_links) { * * @ingroup menu */ -function hook_system_breadcrumb_alter(Drupal\Core\Breadcrumb\Breadcrumb &$breadcrumb, \Drupal\Core\Routing\RouteMatchInterface $route_match, array $context) { +function hook_system_breadcrumb_alter(Drupal\Core\Breadcrumb\BreadcrumbInterface &$breadcrumb, \Drupal\Core\Routing\RouteMatchInterface $route_match, array $context) { // Add an item to the end of the breadcrumb. $breadcrumb->addLink(Drupal::l(t('Text'), 'example_route_name')); }