You are here

function quickedit_test_field_formatter_info_alter in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/quickedit/tests/modules/quickedit_test.module \quickedit_test_field_formatter_info_alter()
  2. 10 core/modules/quickedit/tests/modules/quickedit_test.module \quickedit_test_field_formatter_info_alter()

Implements hook_field_formatter_info_alter().

See also

quickedit_field_formatter_info_alter()

editor_field_formatter_info_alter()

File

core/modules/quickedit/tests/modules/quickedit_test.module, line 28
Helper module for the Quick Edit tests.

Code

function quickedit_test_field_formatter_info_alter(&$info) {

  // Update \Drupal\text\Plugin\Field\FieldFormatter\TextDefaultFormatter's
  // annotation to indicate that it supports the 'wysiwyg' in-place editor
  // provided by this module.
  $info['text_default']['quickedit'] = [
    'editor' => 'wysiwyg',
  ];
}