ViewEntityInterface::getDisplay

public &ViewEntityInterface::getDisplay($display_id) Retrieves a specific display's configuration by reference. Parameters string $display_id: The display ID to retrieve, e.g., 'default', 'page_1', 'block_2'. Return value array A reference to the specified display configuration. File core/modules/views/src/ViewEntityInterface.php, line 29 Class ViewEntityInterface Defines an interface for View storage classes. Namespace Drupal\views Code public function &getDisplay($display_i

ViewEntityInterface::getExecutable

public ViewEntityInterface::getExecutable() Gets an executable instance for this view. Return value \Drupal\views\ViewExecutable A view executable instance. File core/modules/views/src/ViewEntityInterface.php, line 18 Class ViewEntityInterface Defines an interface for View storage classes. Namespace Drupal\views Code public function getExecutable();

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

ViewEntityInterface::duplicateDisplayAsType

public ViewEntityInterface::duplicateDisplayAsType($old_display_id, $new_display_type) Duplicates an existing display into a new display type. For example clone to display a page display as a block display. Parameters string $old_display_id: The origin of the duplicated display. string $new_display_type: The display type of the new display. Return value string The display ID of the new display. File core/modules/views/src/ViewEntityInterface.php, line 49 Class ViewEntityInterface Defines

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

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