From da9c3f4567cd19847d735e8f124997019ead40bf Mon Sep 17 00:00:00 2001
From: Steve Wirt <swirtMiles@138230.no-reply.drupal.org>
Date: Mon, 25 Sep 2023 10:24:34 -0400
Subject: [PATCH] Issue #3389587 by swirt: Documentation for menus not getting
 an alias

---
 src/CMDocumentConnectorTrait.php | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/CMDocumentConnectorTrait.php b/src/CMDocumentConnectorTrait.php
index f94de85..2cfbd1a 100644
--- a/src/CMDocumentConnectorTrait.php
+++ b/src/CMDocumentConnectorTrait.php
@@ -55,11 +55,11 @@ trait CMDocumentConnectorTrait {
         $alias = "/admin/structure/media/manage/{$bundle}/document";
         break;
 
-      case ($type === 'menu_link') && (!empty($field)):
+      case ($type === 'menu_link_content') && (!empty($field)):
         $alias = "/admin/structure/menu/manage/{$bundle_hyphenated}/fields/menu_link_content.{$bundle_hyphenated}.{$field}/document";
         break;
 
-      case ($type === 'menu_link'):
+      case ($type === 'menu_link_content'):
         $alias = "/admin/structure/menu/manage/{$bundle}/document";
         break;
 
-- 
GitLab