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

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

ViewEditForm::submitDuplicateDisplayAsType

public ViewEditForm::submitDuplicateDisplayAsType($form, FormStateInterface $form_state) Submit handler to Duplicate a display as another display type. File core/modules/views_ui/src/ViewEditForm.php, line 849 Class ViewEditForm Form controller for the Views edit form. Namespace Drupal\views_ui Code public function submitDuplicateDisplayAsType($form, FormStateInterface $form_state) { /** @var \Drupal\views\ViewEntityInterface $view */ $view = $this->entity; $display_id = $this

ViewEditForm::validateForm

public ViewEditForm::validateForm(array &$form, FormStateInterface $form_state) Form validation handler. Parameters array $form: An associative array containing the structure of the form. \Drupal\Core\Form\FormStateInterface $form_state: The current state of the form. Overrides FormBase::validateForm File core/modules/views_ui/src/ViewEditForm.php, line 236 Class ViewEditForm Form controller for the Views edit form. Namespace Drupal\views_ui Code public function validateForm(array

ViewEditForm::__construct

public ViewEditForm::__construct(SharedTempStoreFactory $temp_store_factory, RequestStack $requestStack, DateFormatterInterface $date_formatter, ElementInfoManagerInterface $element_info) Constructs a new ViewEditForm object. Parameters \Drupal\user\SharedTempStoreFactory $temp_store_factory: The factory for the temp store object. \Symfony\Component\HttpFoundation\RequestStack $requestStack: The request stack object. \Drupal\Core\Datetime\DateFormatterInterface $date_formatter: The date Format

ViewEntityInterface

Defines an interface for View storage classes. Hierarchy interface \Drupal\Core\Entity\EntityInterface; interface \Drupal\Core\Config\Entity\ThirdPartySettingsInterfaceinterface \Drupal\Core\Config\Entity\ConfigEntityInterfaceinterface \Drupal\views\ViewEntityInterface File core/modules/views/src/ViewEntityInterface.php, line 10 Namespace Drupal\views Members Name Modifiers Type Description AccessibleInterface::access public function Checks data value access. Cacheab

ViewEntityInterface::addDisplay

public ViewEntityInterface::addDisplay($plugin_id = 'page', $title = NULL, $id = NULL) Adds a new display handler to the view, automatically creating an ID. Parameters string $plugin_id: (optional) The plugin type from the Views plugin annotation. Defaults to 'page'. string $title: (optional) The title of the display. Defaults to NULL. string $id: (optional) The ID to use, e.g., 'default', 'page_1', 'block_2'. Defaults to NULL. Return value string|bool The key to the display in $view->disp