diff --git a/core/modules/block_content/src/BlockContentTypeForm.php b/core/modules/block_content/src/BlockContentTypeForm.php index 6044917f16b33bfe08abb00e2085b031234981aa..2124518ddbfca84c9b7b49858dc19a3eaddd32dd 100644 --- a/core/modules/block_content/src/BlockContentTypeForm.php +++ b/core/modules/block_content/src/BlockContentTypeForm.php @@ -35,7 +35,7 @@ public function form(array $form, FormStateInterface $form_state) { '#title' => $this->t('Label'), '#maxlength' => 255, '#default_value' => $block_type->label(), - '#description' => $this->t("The human-readable name for this block type, displayed on the <em>Block types</em> page."), + '#description' => $this->t("Provide a label for this block type to help identify it in the administration pages."), '#required' => TRUE, ]; $form['id'] = [ @@ -44,14 +44,13 @@ public function form(array $form, FormStateInterface $form_state) { '#machine_name' => [ 'exists' => '\Drupal\block_content\Entity\BlockContentType::load', ], - '#description' => $this->t("Unique machine-readable name: lowercase letters, numbers, and underscores only."), '#maxlength' => EntityTypeInterface::BUNDLE_MAX_LENGTH, ]; $form['description'] = [ '#type' => 'textarea', '#default_value' => $block_type->getDescription(), - '#description' => $this->t('Displays on the <em>Block types</em> page.'), + '#description' => $this->t('Enter a description for this block type.'), '#title' => $this->t('Description'), ]; diff --git a/core/modules/comment/src/CommentTypeForm.php b/core/modules/comment/src/CommentTypeForm.php index c4cea6f51e7a0b024a251eb101d6e30c95e00730..37b1bf973b6283480930842707b69ef78981641c 100644 --- a/core/modules/comment/src/CommentTypeForm.php +++ b/core/modules/comment/src/CommentTypeForm.php @@ -3,8 +3,8 @@ namespace Drupal\comment; use Drupal\Core\Entity\EntityForm; -use Drupal\Core\Entity\EntityTypeInterface; use Drupal\Core\Entity\EntityTypeManagerInterface; +use Drupal\Core\Entity\EntityTypeInterface; use Drupal\Core\Entity\FieldableEntityInterface; use Drupal\Core\Form\FormStateInterface; use Drupal\language\Entity\ContentLanguageSettings; @@ -79,7 +79,6 @@ public function form(array $form, FormStateInterface $form_state) { '#title' => $this->t('Label'), '#maxlength' => 255, '#default_value' => $comment_type->label(), - '#description' => $this->t('The human-readable name for this comment type, displayed on the <em>Comment types</em> page.'), '#required' => TRUE, ]; $form['id'] = [ @@ -88,7 +87,6 @@ public function form(array $form, FormStateInterface $form_state) { '#machine_name' => [ 'exists' => '\Drupal\comment\Entity\CommentType::load', ], - '#description' => $this->t('Unique machine-readable name: lowercase letters, numbers, and underscores only.'), '#maxlength' => EntityTypeInterface::BUNDLE_MAX_LENGTH, '#disabled' => !$comment_type->isNew(), ]; @@ -96,7 +94,7 @@ public function form(array $form, FormStateInterface $form_state) { $form['description'] = [ '#type' => 'textarea', '#default_value' => $comment_type->getDescription(), - '#description' => $this->t('Displays on the <em>Comment types</em> page.'), + '#description' => $this->t('Describe this comment type. The text will be displayed on the <em>Comment types</em> administration overview page.'), '#title' => $this->t('Description'), ]; diff --git a/core/modules/media/src/MediaTypeForm.php b/core/modules/media/src/MediaTypeForm.php index ee815dd21c3744d06347fe164ee76aad9912f5e0..64adc89cfb29cb6b1ede9f44b6c0960724107f14 100644 --- a/core/modules/media/src/MediaTypeForm.php +++ b/core/modules/media/src/MediaTypeForm.php @@ -97,7 +97,7 @@ public function form(array $form, FormStateInterface $form_state) { '#title' => $this->t('Name'), '#type' => 'textfield', '#default_value' => $this->entity->label(), - '#description' => $this->t('The human-readable name for this media type, displayed on the <em>Media types</em> page.'), + '#description' => $this->t('The human-readable name of this media type.'), '#required' => TRUE, '#size' => 30, ]; @@ -110,14 +110,14 @@ public function form(array $form, FormStateInterface $form_state) { '#machine_name' => [ 'exists' => [MediaType::class, 'load'], ], - '#description' => $this->t('Unique machine-readable name: lowercase letters, numbers, and underscores only.'), + '#description' => $this->t('A unique machine-readable name for this media type.'), ]; $form['description'] = [ '#title' => $this->t('Description'), '#type' => 'textarea', '#default_value' => $this->entity->getDescription(), - '#description' => $this->t('Displays on the <em>Media types</em> page.'), + '#description' => $this->t('Describe this media type. The text will be displayed on the <em>Add new media</em> page.'), ]; $plugins = $this->sourceManager->getDefinitions(); diff --git a/core/modules/node/src/NodeTypeForm.php b/core/modules/node/src/NodeTypeForm.php index 5746739a8f8c5cc8275dc225d5c688982ccd6a32..f4742b570f02dd4ba8b0b584323ffd5e3a0b4988 100644 --- a/core/modules/node/src/NodeTypeForm.php +++ b/core/modules/node/src/NodeTypeForm.php @@ -69,7 +69,7 @@ public function form(array $form, FormStateInterface $form_state) { '#title' => $this->t('Name'), '#type' => 'textfield', '#default_value' => $type->label(), - '#description' => $this->t('The human-readable name for this content type, displayed on the <em>Content types</em> page.'), + '#description' => $this->t('The human-readable name of this content type. This text will be displayed as part of the list on the <em>Add content</em> page. This name must be unique.'), '#required' => TRUE, '#size' => 30, ]; @@ -83,7 +83,7 @@ public function form(array $form, FormStateInterface $form_state) { 'exists' => ['Drupal\node\Entity\NodeType', 'load'], 'source' => ['name'], ], - '#description' => $this->t('Unique machine-readable name: lowercase letters, numbers, and underscores only.', [ + '#description' => $this->t('A unique machine-readable name for this content type. It must only contain lowercase letters, numbers, and underscores. This name will be used for constructing the URL of the %node-add page.', [ '%node-add' => $this->t('Add content'), ]), ]; @@ -92,7 +92,7 @@ public function form(array $form, FormStateInterface $form_state) { '#title' => $this->t('Description'), '#type' => 'textarea', '#default_value' => $type->getDescription(), - '#description' => $this->t('Displays on the <em>Content types</em> page.'), + '#description' => $this->t('This text will be displayed on the <em>Add new content</em> page.'), ]; $form['additional_settings'] = [