- ๐บ๐ธUnited States smustgrave
๐ Provide helpful editing links on "admin/structure/block" for deriver blocks (menu, views, block content, etc.) Needs review is doing something very similar.
getOperations() {
1. Should be typehinted as a new functiongetResetRoute()
2. dittoTypehint should be added for new functions in all spots.
Very nice work though!
- Status changed to Needs review
almost 2 years ago 11:17am 3 February 2023 - ๐ฎ๐ณIndia mohit_aghera Rajkot
- Added type hints in the necessary methods.
- Added a change record here https://www.drupal.org/node/3338898 โ (first one from me ๐)
Tests are passing on local. - Status changed to RTBC
almost 2 years ago 4:55pm 3 February 2023 - Status changed to Needs work
almost 2 years ago 4:17pm 21 February 2023 - ๐ฌ๐งUnited Kingdom catch
Overall looks good, but a couple of nits:
-
+++ b/core/lib/Drupal/Core/Menu/MenuLinkBase.php @@ -160,6 +167,38 @@ public function getTranslateRoute() { + public function getOperations(): array { + $operations = []; +
This is missing phpdoc.
-
+++ b/core/lib/Drupal/Core/Menu/MenuLinkInterface.php @@ -228,4 +238,16 @@ public function getEditRoute(); + */ + public function getOperations(): array; +
OK it is because the interface method is added here. 1-1 rule so method addition is fine.
-
+++ b/core/modules/menu_link_content/src/Plugin/Menu/MenuLinkContent.php @@ -185,23 +192,50 @@ public function getDescription() { */ public function getTranslateRoute() { + // TODO get link from ListBuilder values? return $this->getEntity()->toUrl('drupal:content-translation-overview'); }
Should this todo be resolved by this issue?
-
- Status changed to Needs review
almost 2 years ago 12:49pm 22 February 2023 - ๐ฎ๐ณIndia mohit_aghera Rajkot
- Attempting to fix the third suggestion in comment #39
Pulling translate link from operations.
I run all the test cases of `menu_link_conten` module on local and those are passing now. The last submitted patch, 41: 2684577-41.patch, failed testing. View results โ
- ๐ฎ๐ณIndia mohit_aghera Rajkot
Moving back to Needs review since last failure was un-related and was from CkEditor5 module.
I triggered re-test and it is passing now. - Status changed to RTBC
almost 2 years ago 9:28am 23 February 2023 - ๐ณ๐ฟNew Zealand quietone
I did some formatting and minor text changes to the Change record.
- last update
almost 2 years ago 29,285 pass - Status changed to Fixed
almost 2 years ago 3:51pm 20 April 2023 Automatically closed - issue fixed for 2 weeks with no activity.
- Status changed to Fixed
over 1 year ago 8:48pm 16 May 2023 - ๐จ๐ญSwitzerland berdir Switzerland
There's a subtle API change here that broke a test in token module. Unlike the hardcoded logic before, the list builder checks access and doesn't return the edit route if the current user doesn't have access to it. The token tests didn't test this token with a logged in user, see ๐ Fix test fail on Drupal 10.1 Fixed .
- ๐ฉ๐ชGermany rkoller Nรผrnberg, Germany
I am leaving a comment for reference and awareness. During today's usability meeting ๐ Drupal Usability Meeting 2024-02-16 Active we were discussing โจ Warn user when entity delete will cause menu item re-parenting Needs review . During the testing we've noticed the following issue i've created a followup issue for: ๐ Menu links created by a view have a visually and functionally broken delete option Active . During the meeting we've tested on a install of Drupal 11.x. While writing up the followup I've tested on a install of Drupal 10.1.0 - the problem already existed there as well.