diff --git a/core/modules/menu_link/lib/Drupal/menu_link/Entity/MenuLink.php b/core/modules/menu_link/lib/Drupal/menu_link/Entity/MenuLink.php index 8089a96..ebb28bf 100644 --- a/core/modules/menu_link/lib/Drupal/menu_link/Entity/MenuLink.php +++ b/core/modules/menu_link/lib/Drupal/menu_link/Entity/MenuLink.php @@ -358,7 +358,7 @@ public function setRouteObject(Route $route) { */ public function reset() { // To reset the link to its original values, we need to retrieve its - // definition from the menu_link.static service.. Otherwise, for example, + // definition from the menu_link.static service. Otherwise, for example, // the link's menu would not be reset, because properties like the original // 'menu_name' are not stored anywhere else. Since resetting a link happens // rarely and this is a one-time operation, retrieving the full set of @@ -378,7 +378,7 @@ public function reset() { ->condition('machine_name', $parent['machine_name']) ->execute()->fetchAssoc(); if ($existing_parent) { - /** @var \Drupal\menu_link\MenuLinkInterface $existing_item */ + /** @var \Drupal\Core\Entity\EntityInterface $existing_parent */ $existing_parent = $storage->create($existing_parent); $new_link->menu_name = $existing_parent->menu_name; $new_link->plid = $existing_parent->id(); diff --git a/core/modules/menu_link/lib/Drupal/menu_link/StaticMenuLinks.php b/core/modules/menu_link/lib/Drupal/menu_link/StaticMenuLinks.php index 766c919..597e7fa 100644 --- a/core/modules/menu_link/lib/Drupal/menu_link/StaticMenuLinks.php +++ b/core/modules/menu_link/lib/Drupal/menu_link/StaticMenuLinks.php @@ -10,7 +10,8 @@ use Drupal\Core\Extension\ModuleHandlerInterface; /** - * Provides a service which finds default menu links in yml files and alters them. + * Provides a service which finds default menu links in yml files and alters + * them. */ class StaticMenuLinks { diff --git a/core/modules/system/lib/Drupal/system/Tests/Menu/LinksTest.php b/core/modules/system/lib/Drupal/system/Tests/Menu/LinksTest.php index 2bfe779..687c13b 100644 --- a/core/modules/system/lib/Drupal/system/Tests/Menu/LinksTest.php +++ b/core/modules/system/lib/Drupal/system/Tests/Menu/LinksTest.php @@ -182,7 +182,8 @@ function testMenuLinkReparenting($module = 'menu_test') { } /** - * Tests automatic reparenting of menu links defined by the menu_link.static service. + * Tests automatic reparenting of menu links defined by the menu_link.static + * service. */ function testMenuLinkRouterReparenting() { // Run all the standard parenting tests on menu links derived from