ViewEditForm::create

public static ViewEditForm::create(ContainerInterface $container) Instantiates a new instance of this class. This is a factory method that returns a new instance of this class. The factory should pass any needed dependencies into the constructor of this class, but not the container itself. Every call to this method must return a new instance of this class; that is, it may not implement a singleton. Parameters \Symfony\Component\DependencyInjection\ContainerInterface $container: The service con

ViewEditForm::form

public ViewEditForm::form(array $form, FormStateInterface $form_state) Gets the actual form array to be built. Overrides EntityForm::form See also \Drupal\Core\Entity\EntityForm::processForm() \Drupal\Core\Entity\EntityForm::afterBuild() File core/modules/views_ui/src/ViewEditForm.php, line 87 Class ViewEditForm Form controller for the Views edit form. Namespace Drupal\views_ui Code public function form(array $form, FormStateInterface $form_state) { $view = $this->entity; $disp

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