diff --git a/core/modules/comment/lib/Drupal/comment/CommentBreadcrumbBuilder.php b/core/modules/comment/lib/Drupal/comment/CommentBreadcrumbBuilder.php index 00b0538..caf7913 100644 --- a/core/modules/comment/lib/Drupal/comment/CommentBreadcrumbBuilder.php +++ b/core/modules/comment/lib/Drupal/comment/CommentBreadcrumbBuilder.php @@ -9,6 +9,7 @@ use Drupal\Core\Breadcrumb\BreadcrumbBuilderInterface; use Drupal\Core\StringTranslation\TranslationManager; +use Symfony\Cmf\Component\Routing\RouteObjectInterface; /** * Class to define the comment breadcrumb builder. @@ -36,7 +37,7 @@ public function __construct(TranslationManager $translation) { * {@inheritdoc} */ public function build(array $attributes) { - if (isset($attributes['_route']) && $attributes['_route'] == 'comment_reply' && isset($attributes['node'])) { + if ($attributes[RouteObjectInterface::ROUTE_NAME] == 'comment_reply' && isset($attributes['node'])) { $node = $attributes['node']; $uri = $node->uri(); $breadcrumb[] = l($this->translation->translate('Home'), NULL);