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

Breadcrumb

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

function RequestEvent::setResponse

Sets a response and stops event propagation.

File

vendor/symfony/http-kernel/Event/RequestEvent.php, line 40

Class

RequestEvent
Allows to create a response for a request.

Namespace

Symfony\Component\HttpKernel\Event

Code

public function setResponse(Response $response) : void {
    $this->response = $response;
    $this->stopPropagation();
}

API Navigation

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