You are here

function gutenberg_element_info_alter in Gutenberg 8

Same name and namespace in other branches
  1. 8.2 gutenberg.module \gutenberg_element_info_alter()

Implements hook_element_info_alter().

File

./gutenberg.module, line 960
Provides integration with the Gutenberg editor.

Code

function gutenberg_element_info_alter(array &$info) {
  if (!empty($info['text_format'])) {

    // Add custom processor to eliminate the format if needed.
    $info['text_format']['#process'][] = '_gutenberg_text_format_processor';
  }
}