protected function WingsuitStreamWrapper::getRequest in Gin Layout Builder 8.2
Returns the current request object.
Return value
\Symfony\Component\HttpFoundation\Request The current request object.
File
- src/
StreamWrapper/ WingsuitStreamWrapper.php, line 80
Class
- WingsuitStreamWrapper
- Defines the read-only ws-assets:// stream wrapper for theme files.
Namespace
Drupal\wingsuit_companion\StreamWrapperCode
protected function getRequest() {
if (!isset($this->request)) {
$this->request = \Drupal::service('request_stack')
->getCurrentRequest();
}
return $this->request;
}