Issue #3502487 by lauriii, oily, ckrina: Make the menu link form less verbose

merge-requests/11032/head
nod_ 2025-01-28 12:16:24 +01:00
parent 523cbdf6df
commit 8357990ca5
No known key found for this signature in database
GPG Key ID: 76624892606FA197
2 changed files with 1 additions and 3 deletions

View File

@ -293,7 +293,6 @@ class MenuLinkContent extends EditorialContentEntityBase implements MenuLinkCont
$fields['title'] = BaseFieldDefinition::create('string')
->setLabel(t('Menu link title'))
->setDescription(t('The text to be used for this link in the menu.'))
->setRequired(TRUE)
->setTranslatable(TRUE)
->setRevisionable(TRUE)
@ -333,7 +332,6 @@ class MenuLinkContent extends EditorialContentEntityBase implements MenuLinkCont
$fields['link'] = BaseFieldDefinition::create('link')
->setLabel(t('Link'))
->setDescription(t('The location this menu link points to.'))
->setRevisionable(TRUE)
->setRequired(TRUE)
->setSettings([

View File

@ -91,7 +91,7 @@ class MenuLinkContentFormTest extends BrowserTestBase {
$option = $this->assertSession()->optionExists('edit-menu-parent', 'admin:');
$this->assertTrue($option->isSelected());
// Test that the field description is present.
$this->assertSession()->pageTextContains('The location this menu link points to.');
$this->assertSession()->pageTextContains('Start typing the title of a piece of content to select it. ');
$this->submitForm([
'title[0][value]' => 'Front page',