ViewEditForm::submitDisplayDuplicate

public ViewEditForm::submitDisplayDuplicate($form, FormStateInterface $form_state) Submit handler to duplicate a display for a view. File core/modules/views_ui/src/ViewEditForm.php, line 800 Class ViewEditForm Form controller for the Views edit form. Namespace Drupal\views_ui Code public function submitDisplayDuplicate($form, FormStateInterface $form_state) { $view = $this->entity; $display_id = $this->displayID; // Create the new display. $displays = $view->get('disp

ViewEditForm::submitDisplayDisable

public ViewEditForm::submitDisplayDisable($form, FormStateInterface $form_state) Submit handler to disable display. File core/modules/views_ui/src/ViewEditForm.php, line 611 Class ViewEditForm Form controller for the Views edit form. Namespace Drupal\views_ui Code public function submitDisplayDisable($form, FormStateInterface $form_state) { $view = $this->entity; $id = $form_state->get('display_id'); $view->getExecutable()->displayHandlers->get($id)->setOption('

ViewEditForm::submitDisplayDelete

public ViewEditForm::submitDisplayDelete($form, FormStateInterface $form_state) Submit handler to delete a display from a view. File core/modules/views_ui/src/ViewEditForm.php, line 629 Class ViewEditForm Form controller for the Views edit form. Namespace Drupal\views_ui Code public function submitDisplayDelete($form, FormStateInterface $form_state) { $view = $this->entity; $display_id = $form_state->get('display_id'); // Mark the display for deletion. $displays = $view-

ViewEditForm::submitDisplayAdd

public ViewEditForm::submitDisplayAdd($form, FormStateInterface $form_state) Submit handler to add a display to a view. File core/modules/views_ui/src/ViewEditForm.php, line 827 Class ViewEditForm Form controller for the Views edit form. Namespace Drupal\views_ui Code public function submitDisplayAdd($form, FormStateInterface $form_state) { $view = $this->entity; // Create the new display. $parents = $form_state->getTriggeringElement()['#parents']; $display_type = array_p

ViewEditForm::submitDelayDestination

public ViewEditForm::submitDelayDestination($form, FormStateInterface $form_state) Submit handler for form buttons that do not complete a form workflow. The Edit View form is a multistep form workflow, but with state managed by the SharedTempStore rather than $form_state->setRebuild(). Without this submit handler, buttons that add or remove displays would redirect to the destination parameter (e.g., when the Edit View form is linked to from a contextual link). This handler can be added to bu

ViewEditForm::save

public ViewEditForm::save(array $form, FormStateInterface $form_state) Form submission handler for the 'save' action. Normally this method should be overridden to provide specific messages to the user and redirect the form after the entity has been saved. Parameters array $form: An associative array containing the structure of the form. \Drupal\Core\Form\FormStateInterface $form_state: The current state of the form. Return value int Either SAVED_NEW or SAVED_UPDATED, depending on the operatio

ViewEditForm::renderDisplayTop

public ViewEditForm::renderDisplayTop(ViewUI $view) Render the top of the display so it can be updated during ajax operations. File core/modules/views_ui/src/ViewEditForm.php, line 672 Class ViewEditForm Form controller for the Views edit form. Namespace Drupal\views_ui Code public function renderDisplayTop(ViewUI $view) { $display_id = $this->displayID; $element['#theme_wrappers'][] = 'views_ui_container'; $element['#attributes']['class'] = array('views-display-top', 'clearfi

ViewEditForm::rebuildCurrentTab

public ViewEditForm::rebuildCurrentTab(ViewUI $view, AjaxResponse $response, $display_id) Regenerate the current tab for AJAX updates. Parameters \Drupal\views_ui\ViewUI $view: The view to regenerate its tab. \Drupal\Core\Ajax\AjaxResponse $response: The response object to add new commands to. string $display_id: The display ID of the tab to regenerate. File core/modules/views_ui/src/ViewEditForm.php, line 654 Class ViewEditForm Form controller for the Views edit form. Namespace Drupal

ViewEditForm::getFormBucket

public ViewEditForm::getFormBucket(ViewUI $view, $type, $display) Add information about a section to a display. File core/modules/views_ui/src/ViewEditForm.php, line 912 Class ViewEditForm Form controller for the Views edit form. Namespace Drupal\views_ui Code public function getFormBucket(ViewUI $view, $type, $display) { $executable = $view->getExecutable(); $executable->setDisplay($display['id']); $executable->initStyle(); $types = $executable->getHandlerTypes();

ViewEditForm::getDisplayTab

public ViewEditForm::getDisplayTab($view) Returns a renderable array representing the edit page for one display. File core/modules/views_ui/src/ViewEditForm.php, line 338 Class ViewEditForm Form controller for the Views edit form. Namespace Drupal\views_ui Code public function getDisplayTab($view) { $build = array(); $display_id = $this->displayID; $display = $view->getExecutable()->displayHandlers->get($display_id); // If the plugin doesn't exist, display an error