You are here

public function ResponseEvent::setResponse in Build Hooks 8.2

Same name and namespace in other branches
  1. 3.x src/Event/ResponseEvent.php \Drupal\build_hooks\Event\ResponseEvent::setResponse()

Set the response.

Parameters

\Psr\Http\Message\ResponseInterface $response: Response.

File

src/Event/ResponseEvent.php, line 39

Class

ResponseEvent
Class ResponseEvent. Event fired when a build event gets the response.

Namespace

Drupal\build_hooks\Event

Code

public function setResponse(ResponseInterface $response) {
  $this->response = $response;
}