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 daa5f42..0eeb197 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 @@ -366,7 +366,7 @@ public function reset() { $original = $all_links[$this->machine_name]; $original['machine_name'] = $this->machine_name; /** @var \Drupal\menu_link\MenuLinkStorageControllerInterface $storage_controller */ - $storage_controller = \Drupal::entityManager()->getStorageController($this->entityType); + $storage_controller = \Drupal::entityManager()->getStorageController($this->entityTypeId); $new_link = $storage_controller->createFromDefaultLink($original); // Merge existing menu link's ID and 'has_children' property. foreach (array('mlid', 'has_children') as $key) {