function editor_field_formatter_info_alter in Drupal 8
Same name and namespace in other branches
- 9 core/modules/editor/editor.module \editor_field_formatter_info_alter()
Implements hook_field_formatter_info_alter().
See also
quickedit_field_formatter_info_alter()
File
- core/
modules/ editor/ editor.module, line 76 - Adds bindings for client-side "text editors" to text formats.
Code
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',
];
}