diff --git a/core/modules/text/src/Plugin/Field/FieldFormatter/TextTrimmedFormatter.php b/core/modules/text/src/Plugin/Field/FieldFormatter/TextTrimmedFormatter.php index 105bfd5068b0c93aa493a15ba3f3aa53e4a036c6..61fd119dec29aeb23d993ccc3e845650a80a547a 100644 --- a/core/modules/text/src/Plugin/Field/FieldFormatter/TextTrimmedFormatter.php +++ b/core/modules/text/src/Plugin/Field/FieldFormatter/TextTrimmedFormatter.php @@ -47,9 +47,11 @@ public static function defaultSettings() { */ public function settingsForm(array $form, FormStateInterface $form_state) { $element['trim_length'] = array( - '#title' => t('Trim length'), + '#title' => t('Trimmed limit'), '#type' => 'number', + '#field_suffix' => t('characters'), '#default_value' => $this->getSetting('trim_length'), + '#description' => t('If the summary is not set, the trimmed %label field will end at the last full sentence before this character limit.', array('%label' => $this->fieldDefinition->getLabel())), '#min' => 1, '#required' => TRUE, ); @@ -61,7 +63,7 @@ public function settingsForm(array $form, FormStateInterface $form_state) { */ public function settingsSummary() { $summary = array(); - $summary[] = t('Trim length: @trim_length', array('@trim_length' => $this->getSetting('trim_length'))); + $summary[] = t('Trimmed limit: @trim_length characters', array('@trim_length' => $this->getSetting('trim_length'))); return $summary; }