diff --git a/core/modules/menu_link/lib/Drupal/menu_link/MenuLinkBreadcrumbBuilder.php b/core/modules/menu_link/lib/Drupal/menu_link/MenuLinkBreadcrumbBuilder.php index e15a2d6..491de28 100644 --- a/core/modules/menu_link/lib/Drupal/menu_link/MenuLinkBreadcrumbBuilder.php +++ b/core/modules/menu_link/lib/Drupal/menu_link/MenuLinkBreadcrumbBuilder.php @@ -81,9 +81,6 @@ public function __construct(Request $request, RouteProviderInterface $route_prov */ public function build(array $attributes) { $links = array(); - // @todo Replace with link generator service when - // https://drupal.org/node/2047619 lands. - $links[] = l($this->translation->translate('Home'), ''); if ($system_path = $this->request->get('_system_path')) { $path_elements = explode('/', $system_path); while (count($path_elements) > 0) { @@ -113,7 +110,10 @@ public function build(array $attributes) { } } } - return $links; + // @todo Replace with link generator service when + // https://drupal.org/node/2047619 lands. + $links[] = l($this->translation->translate('Home'), ''); + return array_reverse($links); } }