diff --git a/core/lib/Drupal/Core/EventSubscriber/PathRootsSubscriber.php b/core/lib/Drupal/Core/EventSubscriber/PathRootsSubscriber.php index 2c0a8e7..5029679 100644 --- a/core/lib/Drupal/Core/EventSubscriber/PathRootsSubscriber.php +++ b/core/lib/Drupal/Core/EventSubscriber/PathRootsSubscriber.php @@ -75,4 +75,4 @@ public static function getSubscribedEvents() { return $events; } -} +} diff --git a/core/modules/comment/comment.module b/core/modules/comment/comment.module index ae1b84f..5f7ec2c 100644 --- a/core/modules/comment/comment.module +++ b/core/modules/comment/comment.module @@ -189,7 +189,7 @@ function comment_menu_link_defaults() { $links['comment.admin.content'] = array( 'link_title' => 'Comments', 'route_name' => 'comment.admin', - 'parent' => 'node.admin.content', + 'parent' => \Drupal::moduleHandler()->moduleExists('node') ? 'node.admin.content' : 'system.admin', 'description' => 'List and edit site comments and the comment approval queue.', ); diff --git a/core/tests/Drupal/Tests/Core/EventSubscriber/PathRootsSubscriberTest.php b/core/tests/Drupal/Tests/Core/EventSubscriber/PathRootsSubscriberTest.php index ee3fda3..30f6461 100644 --- a/core/tests/Drupal/Tests/Core/EventSubscriber/PathRootsSubscriberTest.php +++ b/core/tests/Drupal/Tests/Core/EventSubscriber/PathRootsSubscriberTest.php @@ -83,4 +83,4 @@ public function testSubscribing() { $this->pathRootsSubscriber->onRouteFinished(); } -} +}