Loading core/modules/menu_link_content/src/Entity/MenuLinkContent.php +0 −2 Original line number Diff line number Diff line Loading @@ -293,7 +293,6 @@ public static function baseFieldDefinitions(EntityTypeInterface $entity_type) { $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) Loading Loading @@ -333,7 +332,6 @@ public static function baseFieldDefinitions(EntityTypeInterface $entity_type) { $fields['link'] = BaseFieldDefinition::create('link') ->setLabel(t('Link')) ->setDescription(t('The location this menu link points to.')) ->setRevisionable(TRUE) ->setRequired(TRUE) ->setSettings([ Loading core/modules/menu_link_content/tests/src/Functional/MenuLinkContentFormTest.php +1 −1 Original line number Diff line number Diff line Loading @@ -91,7 +91,7 @@ public function testMenuLinkContentForm(): void { $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', Loading Loading
core/modules/menu_link_content/src/Entity/MenuLinkContent.php +0 −2 Original line number Diff line number Diff line Loading @@ -293,7 +293,6 @@ public static function baseFieldDefinitions(EntityTypeInterface $entity_type) { $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) Loading Loading @@ -333,7 +332,6 @@ public static function baseFieldDefinitions(EntityTypeInterface $entity_type) { $fields['link'] = BaseFieldDefinition::create('link') ->setLabel(t('Link')) ->setDescription(t('The location this menu link points to.')) ->setRevisionable(TRUE) ->setRequired(TRUE) ->setSettings([ Loading
core/modules/menu_link_content/tests/src/Functional/MenuLinkContentFormTest.php +1 −1 Original line number Diff line number Diff line Loading @@ -91,7 +91,7 @@ public function testMenuLinkContentForm(): void { $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', Loading