views_ui_help

views_ui_help($route_name, RouteMatchInterface $route_match) Implements hook_help(). File core/modules/views_ui/views_ui.module, line 17 Provide structure for the administrative interface to Views. Code function views_ui_help($route_name, RouteMatchInterface $route_match) { switch ($route_name) { case 'help.page.views_ui': $output = ''; $output .= '<h3>' . t('About') . '</h3>'; $output .= '<p>' . t('The Views UI module provides an interface for managi

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

views_ui_entity_type_build

views_ui_entity_type_build(array &$entity_types) Implements hook_entity_type_build(). File core/modules/views_ui/views_ui.module, line 39 Provide structure for the administrative interface to Views. Code function views_ui_entity_type_build(array &$entity_types) { /** @var $entity_types \Drupal\Core\Entity\EntityTypeInterface[] */ $entity_types['view'] ->setFormClass('edit', 'Drupal\views_ui\ViewEditForm') ->setFormClass('add', 'Drupal\views_ui\ViewAddForm') ->se

views_ui_nojs_submit

views_ui_nojs_submit($form, FormStateInterface $form_state) Non-Javascript fallback for updating the add view form. File core/modules/views_ui/admin.inc, line 198 Provides the Views' administrative interface. Code function views_ui_nojs_submit($form, FormStateInterface $form_state) { $form_state->setRebuild(); }

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_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_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_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_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 //