Issue #754736 by mohit_aghera, EvanDonovan, bxtaylor, smustgrave, pameeela, AaronMcHale: Update wording of "Available menus" description text in Content Type configuration
parent
d1faffc725
commit
05d85c8e4c
|
@ -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
|
||||
|
|
|
@ -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');
|
||||
|
|
Loading…
Reference in New Issue