editor_field_formatter_info_alter

editor_field_formatter_info_alter(&$info)

Implements hook_form_FORM_ID_alter() for \Drupal\filter\FilterFormatListBuilder.

Implements hook_field_formatter_info_alter().

See also

quickedit_field_formatter_info_alter()

File

core/modules/editor/editor.module, line 75
Adds bindings for client-side "text editors" to text formats.

Code

1
2
3
4
5
6
function editor_field_formatter_info_alter(&$info) {
  // Update \Drupal\text\Plugin\Field\FieldFormatter\TextDefaultFormatter's
  // annotation to indicate that it supports the 'editor' in-place editor
  // provided by this module.
  $info['text_default']['quickedit'] = ['editor' => 'editor'];
}
doc_Drupal
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.