function gutenberg_form_node_form_after_build in Gutenberg 8.2
Same name and namespace in other branches
- 8 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_BASE_FORM_ID_alter() for \Drupal\node\NodeForm.
File
- ./
gutenberg.module, line 583 - 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;
}