Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. ViewExecutable.php

function ViewExecutable::getResponse

Gets the response object used by the view.

Return value

\Symfony\Component\HttpFoundation\Response The response object of the view.

File

core/modules/views/src/ViewExecutable.php, line 1851

Class

ViewExecutable
Represents a view as a whole.

Namespace

Drupal\views

Code

public function getResponse() {
    if (!isset($this->response)) {
        $this->response = new Response();
    }
    return $this->response;
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal