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_form_button_was_clicked

views_ui_form_button_was_clicked($element, FormStateInterface $form_state) #process callback for a button; determines if a button is the form's triggering element. The Form API has logic to determine the form's triggering element based on the data in POST. However, it only checks buttons based on a single #value per button. This function may be added to a button's #process callbacks to extend button click detection to support multiple #values per button. If the data in POST matches any value in

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

views_ui_preprocess_views_view(&$variables) Implements hook_preprocess_HOOK() for views templates. File core/modules/views_ui/views_ui.module, line 119 Provide structure for the administrative interface to Views. Code function views_ui_preprocess_views_view(&$variables) { $view = $variables['view']; // Render title for the admin preview. if (!empty($view->live_preview)) { $variables['title']['#markup'] = $view->getTitle(); } if (!empty($view->live_preview) &am

views_ui_standard_display_dropdown

views_ui_standard_display_dropdown(&$form, FormStateInterface $form_state, $section) Add a <select> dropdown for a given section, allowing the user to change whether this info is stored on the default display or on the current display. File core/modules/views_ui/admin.inc, line 207 Provides the Views' administrative interface. Code function views_ui_standard_display_dropdown(&$form, FormStateInterface $form_state, $section) { $view = $form_state->get('view'); $display_id

views_ui_theme

views_ui_theme() Implements hook_theme(). File core/modules/views_ui/views_ui.module, line 63 Provide structure for the administrative interface to Views. Code function views_ui_theme() { return array( // edit a view 'views_ui_display_tab_setting' => array( 'variables' => array('description' => '', 'link' => '', 'settings_links' => array(), 'overridden' => FALSE, 'defaulted' => FALSE, 'description_separator' => TRUE, 'class' => array()), 'file'

views_ui_theme_suggestions_views_ui_view_preview_section

views_ui_theme_suggestions_views_ui_view_preview_section(array $variables) Implements hook_theme_suggestions_HOOK(). File core/modules/views_ui/views_ui.theme.inc, line 528 Preprocessors and theme functions for the Views UI. Code function views_ui_theme_suggestions_views_ui_view_preview_section(array $variables) { return array('views_ui_view_preview_section__' . $variables['section']); }

views_ui_truncate

views_ui_truncate($string, $length) Truncate strings to a set length and provide a '...' if they truncated. This is often used in the UI to ensure long strings fit. File core/modules/views_ui/views_ui.module, line 321 Provide structure for the administrative interface to Views. Code function views_ui_truncate($string, $length) { if (Unicode::strlen($string) > $length) { $string = Unicode::substr($string, 0, $length); $string .= '...'; } return $string; }

views_ui_views_analyze

views_ui_views_analyze(ViewExecutable $view) Implements hook_views_analyze(). This is the basic views analysis that checks for very minimal problems. There are other analysis tools in core specific sections, such as node.views.inc as well. File core/modules/views_ui/views_ui.module, line 292 Provide structure for the administrative interface to Views. Code function views_ui_views_analyze(ViewExecutable $view) { $ret = array(); // Check for something other than the default display: if (c