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

public static ViewAjaxController::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 servi

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

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

ViewAjaxResponse::$view

The view executed on this ajax request. Type: \Drupal\views\ViewExecutable File core/modules/views/src/Ajax/ViewAjaxResponse.php, line 20 Class ViewAjaxResponse Custom JSON response object for an ajax view response. Namespace Drupal\views\Ajax Code protected $view;

ViewAjaxResponse::getView

public ViewAjaxResponse::getView() Gets the executed view of this response. Return value \Drupal\views\ViewExecutable $view The View executed on this ajax request. File core/modules/views/src/Ajax/ViewAjaxResponse.php, line 38 Class ViewAjaxResponse Custom JSON response object for an ajax view response. Namespace Drupal\views\Ajax Code public function getView() { return $this->view; }

ViewAjaxResponse::setView

public ViewAjaxResponse::setView(ViewExecutable $view) Sets the executed view of this response. Parameters \Drupal\views\ViewExecutable $view: The View executed on this ajax request. File core/modules/views/src/Ajax/ViewAjaxResponse.php, line 28 Class ViewAjaxResponse Custom JSON response object for an ajax view response. Namespace Drupal\views\Ajax Code public function setView(ViewExecutable $view) { $this->view = $view; }

ViewDuplicateForm

Form controller for the Views duplicate form. Hierarchy class \Drupal\Core\Form\FormBase implements ContainerInjectionInterface, FormInterface uses DependencySerializationTrait, LoggerChannelTrait, LinkGeneratorTrait, RedirectDestinationTrait, UrlGeneratorTrait, StringTranslationTraitclass \Drupal\Core\Entity\EntityForm implements EntityFormInterfaceclass \Drupal\views_ui\ViewFormBaseclass \Drupal\views_ui\ViewDuplicateForm File core/modules/views_ui/src/ViewDuplicateForm.php, line 10

ViewDuplicateForm::actions

protected ViewDuplicateForm::actions(array $form, FormStateInterface $form_state) Returns an array of supported actions for the current entity form. @todo Consider introducing a 'preview' action here, since it is used by many entity types. Overrides EntityForm::actions File core/modules/views_ui/src/ViewDuplicateForm.php, line 52 Class ViewDuplicateForm Form controller for the Views duplicate form. Namespace Drupal\views_ui Code protected function actions(array $form, FormStateInterfac

ViewDuplicateForm::form

public ViewDuplicateForm::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/ViewDuplicateForm.php, line 22 Class ViewDuplicateForm Form controller for the Views duplicate form. Namespace Drupal\views_ui Code public function form(array $form, FormStateInterface $form_state) { parent::form(