function views_ui_standard_display_dropdown

Same name and namespace in other branches
  1. 11.x core/modules/views_ui/admin.inc \views_ui_standard_display_dropdown()
  2. 10 core/modules/views_ui/admin.inc \views_ui_standard_display_dropdown()
  3. 9 core/modules/views_ui/admin.inc \views_ui_standard_display_dropdown()
  4. 8.9.x core/modules/views_ui/admin.inc \views_ui_standard_display_dropdown()

Adds an element to select either the default display or the current display.

Deprecated

in drupal:11.4.0 and is removed from drupal:13.0.0. There is no public replacement for this function. Form classes can use the \Drupal\views\ViewsFormHelperTrait trait and call the standardDisplayDropdown() method.

See also

https://www.drupal.org/node/3566774

File

core/modules/views_ui/admin.inc, line 131

Code

function views_ui_standard_display_dropdown(&$form, FormStateInterface $form_state, $section) : void {
  @trigger_error(__FUNCTION__ . '() is deprecated in drupal:11.4.0 and is removed from drupal:13.0.0. There is no public replacement for this function. Form classes can use the \\Drupal\\views\\ViewsFormHelperTrait trait and call the standardDisplayDropdown() method. See https://www.drupal.org/node/3566774', E_USER_DEPRECATED);
  _views_ui_wrap_views_form_helper_traits()->standardDisplayDropdownWrapper($form, $form_state, $section);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.