Skip to content
Snippets Groups Projects
Commit a801764e authored by Alex Pott's avatar Alex Pott
Browse files

Issue #2350013 by kattekrab, David_Rothstein: Descriptions for Promotion Options are too technical

parent c9e1f935
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
......@@ -7,8 +7,8 @@ id: node.book.promote
field_name: promote
entity_type: node
bundle: book
label: Promote
description: 'A boolean indicating whether the node should be displayed on the front page.'
label: Promoted to front page
description: ''
required: false
translatable: true
default_value:
......
......@@ -8,8 +8,8 @@ id: node.forum.promote
field_name: promote
entity_type: node
bundle: forum
label: Promote
description: 'A boolean indicating whether the node should be displayed on the front page.'
label: Promoted to front page
description: ''
required: false
translatable: true
default_value:
......
......@@ -436,8 +436,7 @@ public static function baseFieldDefinitions(EntityTypeInterface $entity_type) {
->setTranslatable(TRUE);
$fields['promote'] = BaseFieldDefinition::create('boolean')
->setLabel(t('Promote'))
->setDescription(t('A boolean indicating whether the node should be displayed on the front page.'))
->setLabel(t('Promoted to front page'))
->setRevisionable(TRUE)
->setTranslatable(TRUE)
->setDefaultValue(TRUE)
......@@ -451,8 +450,7 @@ public static function baseFieldDefinitions(EntityTypeInterface $entity_type) {
->setDisplayConfigurable('form', TRUE);
$fields['sticky'] = BaseFieldDefinition::create('boolean')
->setLabel(t('Sticky'))
->setDescription(t('A boolean indicating whether the node should be displayed at the top of lists in which it appears.'))
->setLabel(t('Sticky at top of lists'))
->setRevisionable(TRUE)
->setTranslatable(TRUE)
->setDefaultValue(FALSE)
......
......@@ -8,8 +8,8 @@ id: node.page.promote
field_name: promote
entity_type: node
bundle: page
label: Promote
description: 'A boolean indicating whether the node should be displayed on the front page.'
label: Promoted to front page
description: ''
required: false
translatable: true
default_value:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment