protected function DomainRedirectResponse::getRequestContext in Domain Access 8
Returns the request context.
Return value
\Drupal\Core\Routing\RequestContext The request context.
File
- domain/src/ DomainRedirectResponse.php, line 64 
Class
- DomainRedirectResponse
- A redirect response which understands domain URLs are local to the install.
Namespace
Drupal\domainCode
protected function getRequestContext() {
  if (!isset($this->requestContext)) {
    $this->requestContext = \Drupal::service('router.request_context');
  }
  return $this->requestContext;
}