From 05d85c8e4ca47b6935356a974bdc816f1df09e91 Mon Sep 17 00:00:00 2001 From: quietone Date: Tue, 18 Apr 2023 15:34:31 +1200 Subject: [PATCH] Issue #754736 by mohit_aghera, EvanDonovan, bxtaylor, smustgrave, pameeela, AaronMcHale: Update wording of "Available menus" description text in Content Type configuration --- core/modules/menu_ui/menu_ui.module | 2 +- core/modules/menu_ui/tests/src/Functional/MenuUiNodeTest.php | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/core/modules/menu_ui/menu_ui.module b/core/modules/menu_ui/menu_ui.module index 6b6b3a11b85..963eb2c3bb9 100644 --- a/core/modules/menu_ui/menu_ui.module +++ b/core/modules/menu_ui/menu_ui.module @@ -374,7 +374,7 @@ function menu_ui_form_node_type_form_alter(&$form, FormStateInterface $form_stat '#title' => t('Available menus'), '#default_value' => $type->getThirdPartySetting('menu_ui', 'available_menus', ['main']), '#options' => $menu_options, - '#description' => t('The menus available to place links in for this content type.'), + '#description' => t('Content of this type can be placed in the selected menus.'), ]; // @todo See if we can avoid pre-loading all options by changing the form or // using a #process callback. https://www.drupal.org/node/2310319 diff --git a/core/modules/menu_ui/tests/src/Functional/MenuUiNodeTest.php b/core/modules/menu_ui/tests/src/Functional/MenuUiNodeTest.php index aa42ea09e7b..08ac7b331d7 100644 --- a/core/modules/menu_ui/tests/src/Functional/MenuUiNodeTest.php +++ b/core/modules/menu_ui/tests/src/Functional/MenuUiNodeTest.php @@ -78,6 +78,9 @@ class MenuUiNodeTest extends BrowserTestBase { $this->drupalGet('admin/structure/types/manage/page'); $this->assertSession()->responseHeaderContains('X-Drupal-Cache-Contexts', 'user.roles:authenticated'); + // Assert the description of "Available menus" checkboxes field. + $this->assertSession()->pageTextContains('Content of this type can be placed in the selected menus.'); + // Verify that the menu link title has the correct maxlength. $title_max_length = \Drupal::service('entity_field.manager')->getBaseFieldDefinitions('menu_link_content')['title']->getSetting('max_length'); $this->drupalGet('node/add/page');