ViewAjaxResponse

Custom JSON response object for an ajax view response. We use a special response object to be able to fire a proper alter hook. Hierarchy class \Symfony\Component\HttpFoundation\JsonResponse extends \Symfony\Component\HttpFoundation\Response class \Drupal\Core\Ajax\AjaxResponse implements AttachmentsInterface uses AttachmentsTraitclass \Drupal\views\Ajax\ViewAjaxResponse File core/modules/views/src/Ajax/ViewAjaxResponse.php, line 13 Namespace Drupal\views\Ajax Members Name Modifie

ViewAjaxController::__construct

public ViewAjaxController::__construct(EntityStorageInterface $storage, ViewExecutableFactory $executable_factory, RendererInterface $renderer, CurrentPathStack $current_path, RedirectDestinationInterface $redirect_destination) Constructs a ViewAjaxController object. Parameters \Drupal\Core\Entity\EntityStorageInterface $storage: The entity storage for views. \Drupal\views\ViewExecutableFactory $executable_factory: The factory to load a view executable with. \Drupal\Core\Render\RendererInterfa

ViewAjaxController::ajaxView

public ViewAjaxController::ajaxView(Request $request) Loads and renders a view via AJAX. Parameters \Symfony\Component\HttpFoundation\Request $request: The current request object. Return value \Drupal\views\Ajax\ViewAjaxResponse The view response as ajax response. Throws \Symfony\Component\HttpKernel\Exception\NotFoundHttpException Thrown when the view was not found. File core/modules/views/src/Controller/ViewAjaxController.php, line 112 Class ViewAjaxController Defines a controller to

ViewAjaxController::$renderer

The renderer. Type: \Drupal\Core\Render\RendererInterface File core/modules/views/src/Controller/ViewAjaxController.php, line 49 Class ViewAjaxController Defines a controller to load a view via AJAX. Namespace Drupal\views\Controller Code protected $renderer;

ViewAjaxController::$redirectDestination

The redirect destination. Type: \Drupal\Core\Routing\RedirectDestinationInterface File core/modules/views/src/Controller/ViewAjaxController.php, line 63 Class ViewAjaxController Defines a controller to load a view via AJAX. Namespace Drupal\views\Controller Code protected $redirectDestination;

ViewAjaxController::$storage

The entity storage for views. Type: \Drupal\Core\Entity\EntityStorageInterface File core/modules/views/src/Controller/ViewAjaxController.php, line 35 Class ViewAjaxController Defines a controller to load a view via AJAX. Namespace Drupal\views\Controller Code protected $storage;

ViewAjaxController::$executableFactory

The factory to load a view executable with. Type: \Drupal\views\ViewExecutableFactory File core/modules/views/src/Controller/ViewAjaxController.php, line 42 Class ViewAjaxController Defines a controller to load a view via AJAX. Namespace Drupal\views\Controller Code protected $executableFactory;

ViewAjaxController

Defines a controller to load a view via AJAX. Hierarchy class \Drupal\views\Controller\ViewAjaxController implements ContainerInjectionInterface File core/modules/views/src/Controller/ViewAjaxController.php, line 28 Namespace Drupal\views\Controller Members Name Modifiers Type Description ViewAjaxController::$currentPath protected property The current path. ViewAjaxController::$executableFactory protected property The factory to load a view executable with. Vie

ViewAddForm::validateForm

public ViewAddForm::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/ViewAddForm.php, line 160 Class ViewAddForm Form controller for the Views edit form. Namespace Drupal\views_ui Code public function validateForm(array &a

ViewAddForm::submitForm

public ViewAddForm::submitForm(array &$form, FormStateInterface $form_state) This is the default entity object builder function. It is called before any other submit handler to build the new entity object to be used by the following submit handlers. At this point of the form workflow the entity is validated and the form state can be updated, this way the subsequently invoked handlers can retrieve a regular entity object to act on. Generally this method should not be overridden unless the e