ViewEditForm::submitDisplayEnable

public ViewEditForm::submitDisplayEnable($form, FormStateInterface $form_state) Submit handler to enable a disabled display. File core/modules/views_ui/src/ViewEditForm.php, line 592 Class ViewEditForm Form controller for the Views edit form. Namespace Drupal\views_ui Code public function submitDisplayEnable($form, FormStateInterface $form_state) { $view = $this->entity; $id = $form_state->get('display_id'); // setOption doesn't work because this would might affect upper di

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::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::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::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::getDisplayDetails

public ViewEditForm::getDisplayDetails($view, $display) Helper function to get the display details section of the edit UI. Parameters $display: Return value array A renderable page build array. File core/modules/views_ui/src/ViewEditForm.php, line 366 Class ViewEditForm Form controller for the Views edit form. Namespace Drupal\views_ui Code public function getDisplayDetails($view, $display) { $display_title = $this->getDisplayLabel($view, $display['id'], FALSE); $build = array

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::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

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