Issue #754736 by mohit_aghera, EvanDonovan, bxtaylor, smustgrave, pameeela, AaronMcHale: Update wording of "Available menus" description text in Content Type configuration

merge-requests/3620/merge
quietone 2023-04-18 15:34:31 +12:00
parent d1faffc725
commit 05d85c8e4c
No known key found for this signature in database
GPG Key ID: 43BFBBB26EA09FE1
2 changed files with 4 additions and 1 deletions

View File

@ -374,7 +374,7 @@ function menu_ui_form_node_type_form_alter(&$form, FormStateInterface $form_stat
'#title' => t('Available menus'), '#title' => t('Available menus'),
'#default_value' => $type->getThirdPartySetting('menu_ui', 'available_menus', ['main']), '#default_value' => $type->getThirdPartySetting('menu_ui', 'available_menus', ['main']),
'#options' => $menu_options, '#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 // @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 // using a #process callback. https://www.drupal.org/node/2310319

View File

@ -78,6 +78,9 @@ class MenuUiNodeTest extends BrowserTestBase {
$this->drupalGet('admin/structure/types/manage/page'); $this->drupalGet('admin/structure/types/manage/page');
$this->assertSession()->responseHeaderContains('X-Drupal-Cache-Contexts', 'user.roles:authenticated'); $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. // 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'); $title_max_length = \Drupal::service('entity_field.manager')->getBaseFieldDefinitions('menu_link_content')['title']->getSetting('max_length');
$this->drupalGet('node/add/page'); $this->drupalGet('node/add/page');