Skip to content
Snippets Groups Projects
Commit e211a2ec authored by Jess's avatar Jess
Browse files

Issue #2803203 by lodey, lomasr, tkoleary, AndreaD, yoroy, joachim, xjm,...

Issue #2803203 by lodey, lomasr, tkoleary, AndreaD, yoroy, joachim, xjm, ifrik: Simplify the descriptions of "menu levels" in the menu block plugin
parent 562a549b
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -89,10 +89,10 @@ public function blockForm($form, FormStateInterface $form_state) {
$form['menu_levels']['level'] = array(
'#type' => 'select',
'#title' => $this->t('Initial menu level'),
'#title' => $this->t('Initial visibility level'),
'#default_value' => $config['level'],
'#options' => $options,
'#description' => $this->t('The menu will only be visible if the menu item for the current page is at or below the selected starting level. Select level 1 to always keep this menu visible.'),
'#description' => $this->t('The menu is only visible if the menu item for the current page is at this level or below it. Use level 1 to always display this menu.'),
'#required' => TRUE,
);
......@@ -100,10 +100,10 @@ public function blockForm($form, FormStateInterface $form_state) {
$form['menu_levels']['depth'] = array(
'#type' => 'select',
'#title' => $this->t('Maximum number of menu levels to display'),
'#title' => $this->t('Number of levels to display'),
'#default_value' => $config['depth'],
'#options' => $options,
'#description' => $this->t('The maximum number of menu levels to show, starting from the initial menu level. For example: with an initial level 2 and a maximum number of 3, menu levels 2, 3 and 4 can be displayed.'),
'#description' => $this->t('This maximum number includes the initial level.'),
'#required' => TRUE,
);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment