diff --git a/core/modules/rest/rest.module b/core/modules/rest/rest.module index ae40970698..c6f17c7516 100644 --- a/core/modules/rest/rest.module +++ b/core/modules/rest/rest.module @@ -34,3 +34,16 @@ function rest_help($route_name, RouteMatchInterface $route_match) { return $output; } } + +/** + * Implements hook_form_FORM_ID_alter(). + */ +function rest_form_views_ui_config_item_form_alter(&$form, &$form_state, $form_id) { + if ($form_id == "views_ui_config_item_form") { + unset($form['options']['empty_field_behavior']); + unset($form['options']['empty']); + unset($form['options']['empty_zero']); + unset($form['options']['hide_empty']); + unset($form['options']['hide_alter_empty']); + } +}