You are here

public function ResponseEvent::__construct in Build Hooks 8.2

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

ResponseEvent constructor.

Parameters

\Psr\Http\Message\ResponseInterface $response: The http client $response.

\Drupal\build_hooks\Plugin\FrontendEnvironmentInterface $plugin: The build hook plugin.

File

src/Event/ResponseEvent.php, line 81

Class

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

Namespace

Drupal\build_hooks\Event

Code

public function __construct(ResponseInterface $response, FrontendEnvironmentInterface $plugin) {
  $this->response = $response;
  $this->plugin = $plugin;
}