views_ui.theme.inc

Preprocessors and theme functions for the Views UI. File core/modules/views_ui/views_ui.theme.inc Functions Name Description template_preprocess_views_ui_build_group_filter_form Prepares variables for Views UI build group filter form templates. template_preprocess_views_ui_display_tab_bucket Prepares variables for Views UI display tab bucket templates. template_preprocess_views_ui_display_tab_setting Prepares variables for Views UI display tab setting templates. template_pre

views_ui_add_ajax_trigger

views_ui_add_ajax_trigger(&$wrapping_element, $trigger_key, $refresh_parents) Converts a form element in the add view wizard to be AJAX-enabled. This function takes a form element and adds AJAX behaviors to it such that changing it triggers another part of the form to update automatically. It also adds a submit button to the form that appears next to the triggering element and that duplicates its functionality for users who do not have JavaScript enabled (the button is automatically hidden

views_ui_add_ajax_wrapper

views_ui_add_ajax_wrapper($element, FormStateInterface $form_state) After-build function that adds a wrapper to a form region (for AJAX refreshes). This function inserts a wrapper around the region of the form that needs to be refreshed by AJAX, based on information stored in the corresponding submit button form element. File core/modules/views_ui/admin.inc, line 158 Provides the Views' administrative interface. Code function views_ui_add_ajax_wrapper($element, FormStateInterface $form_state)

views_ui_add_limited_validation

views_ui_add_limited_validation($element, FormStateInterface $form_state) Processes a non-JavaScript fallback submit button to limit its validation errors. File core/modules/views_ui/admin.inc, line 122 Provides the Views' administrative interface. Code function views_ui_add_limited_validation($element, FormStateInterface $form_state) { // Retrieve the AJAX triggering element so we can determine its parents. (We // know it's at the same level of the complete form array as the submit //

views_ui_ajax_update_form

views_ui_ajax_update_form($form, FormStateInterface $form_state) Updates a part of the add view form via AJAX. Return value The part of the form that has changed. File core/modules/views_ui/admin.inc, line 188 Provides the Views' administrative interface. Code function views_ui_ajax_update_form($form, FormStateInterface $form_state) { // The region that needs to be updated was stored in a property of the // triggering element by views_ui_add_ajax_trigger(), so all we have to do is // r

views_ui_build_form_url

views_ui_build_form_url(FormStateInterface $form_state) Create the menu path for one of our standard AJAX forms based upon known information about the form. Return value \Drupal\Core\Url The URL object pointing to the form URL. File core/modules/views_ui/admin.inc, line 277 Provides the Views' administrative interface. Code function views_ui_build_form_url(FormStateInterface $form_state) { $ajax = !$form_state->get('ajax') ? 'nojs' : 'ajax'; $name = $form_state->get('view')->id(

views_ui_contextual_links_suppress

views_ui_contextual_links_suppress($set = NULL) Sets a static variable for controlling whether contextual links are rendered. See also views_ui_contextual_links_view_alter() File core/modules/views_ui/views_ui.module, line 252 Provide structure for the administrative interface to Views. Code function views_ui_contextual_links_suppress($set = NULL) { $suppress = &drupal_static(__FUNCTION__); if (isset($set)) { $suppress = $set; } return $suppress; }

views_ui_contextual_links_suppress_pop

views_ui_contextual_links_suppress_pop() Decrements the views_ui_contextual_links_suppress() static variable. See also views_ui_contextual_links_suppress_push() File core/modules/views_ui/views_ui.module, line 281 Provide structure for the administrative interface to Views. Code function views_ui_contextual_links_suppress_pop() { views_ui_contextual_links_suppress(((int) views_ui_contextual_links_suppress()) - 1); }

views_ui_contextual_links_suppress_push

views_ui_contextual_links_suppress_push() Increments the views_ui_contextual_links_suppress() static variable. When this function is added to the #pre_render of an element, and 'views_ui_contextual_links_suppress_pop' is added to the #post_render of the same element, then all contextual links within the element and its descendants are suppressed from being rendered. This is used, for example, during a View preview, when it is not desired for nodes in the Views result to have contextual links. S

views_ui_contextual_links_view_alter

views_ui_contextual_links_view_alter(&$element, $items) Implements hook_contextual_links_view_alter(). File core/modules/views_ui/views_ui.module, line 231 Provide structure for the administrative interface to Views. Code function views_ui_contextual_links_view_alter(&$element, $items) { // Remove contextual links from being rendered, when so desired, such as // within a View preview. if (views_ui_contextual_links_suppress()) { $element['#links'] = array(); } // Append t