Warn if an entity delete will cause menu item re-parenting
Closes #3387665
Merge request reports
Activity
added 589 commits
-
905415d9...1bcfd82c - 588 commits from branch
project:11.x
- fbd715f3 - functional. no tests, no lint
-
905415d9...1bcfd82c - 588 commits from branch
added 1 commit
- dd4aa0f9 - ignore idless, ignore the drupaliasm where which requires ids
- Resolved by Stephen Mustgrave
116 /** @var \Drupal\menu_link_content\Entity\MenuLinkContent|null $menuLink */ 117 $menuLink = $id !== FALSE ? $menuLinkContentStorage->load($id) : NULL; 118 if ($menuLink === NULL) { 119 return []; 120 } 121 122 $menuLink = $this->entityRepository->getTranslationFromContext($menuLink); 123 $parameters = (new MenuTreeParameters()) 124 ->setRoot($menuLink->getPluginId()) 125 ->excludeRoot() 126 ->setMinDepth(1) 127 ->setMaxDepth(1); 128 return $this->menuLinkTree->transform( 129 tree: $this->menuLinkTree->load($menuLink->getMenuName(), $parameters), 130 manipulators: [ 131 ['callable' => 'menu.default_tree_manipulators:checkAccess'], changed this line in version 24 of the diff
added 1 commit
- b8f0a351 - properly inject stringtranslation so this->t() uses it
added 1 commit
- 59644bdb - add message for menu content form delete also
added 1280 commits
-
59644bdb...1bcc8960 - 1279 commits from branch
project:11.x
- f3624baa - 3387665: Fix conflicts and chnages in test file with D11 compatibility
-
59644bdb...1bcc8960 - 1279 commits from branch
- Resolved by Stephen Mustgrave
- Resolved by Stephen Mustgrave
- Resolved by Stephen Mustgrave
added 288 commits
-
3232de03...2546cebc - 286 commits from branch
project:11.x
- db179cdd - 3387665: Fix conflicts and chnages in test file with D11 compatibility
- b19c1bf5 - Removing un-needed changes
-
3232de03...2546cebc - 286 commits from branch
Please register or sign in to reply