You are here

function gutenberg_form_node_form_after_build in Gutenberg 8

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

Called by after build text fields on the form.

1 string reference to 'gutenberg_form_node_form_after_build'
gutenberg_form_node_form_alter in ./gutenberg.module
Implements hook_form_node_form_alter().

File

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

Code

function gutenberg_form_node_form_after_build(array $element, FormStateInterface $form_state) {
  unset($element[0]['format']['format']['#options']['gutenberg']);
  return $element;
}