There is a D7 patch that adds this support
https://www.drupal.org/project/text_summary_options/issues/3020345

This should also be added for D8.

Comments

joshua.boltz created an issue. See original summary.

joshua.boltz’s picture

joshua.boltz’s picture

Another option is to use a hook_form_alter() implementation to add the help text to the Summary field that's provided as part of the Long text field, such as a Body field.

Here is an example:

/**
  * Implements hook_form_alter().
  */
function my_module_form_alter(&$form, FormStateInterface &$form_state, $form_id) {
  // Add help text to summary.
  if (!empty($form['body']['widget'][0]['summary'])) {
    $form['body']['widget'][0]['summary']['#description'] = t('This is my summary help text.');
  }
}
rcodina’s picture

I confirm I will port this feature to D8 as soon as I have time.

  • rcodina committed a9c3fb3 on 8.x-1.x
    Issue #3101879 by rcodina: Custom summary help text
    
rcodina’s picture

Status: Active » Fixed

Port of the D7 patch to D8 done.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.