Sets a response and stops event propagation
@api
Parameters
Response $response:
File
- drupal/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/Event/GetResponseEvent.php, line 54
Class
- GetResponseEvent
- Allows to create a response for a request
Namespace
Symfony\Component\HttpKernel\Event
Code
public function setResponse(Response $response) {
$this->response = $response;
$this
->stopPropagation();
}