public LocalAwareRedirectResponseTrait::setRequestContext(RequestContext $request_context)
Sets the request context.
Parameters
\Drupal\Core\Routing\RequestContext $request_context: The request context.
Return value
$this
File
- core/lib/Drupal/Core/Routing/LocalAwareRedirectResponseTrait.php, line 46
Class
- LocalAwareRedirectResponseTrait
- Provides a trait which ensures that a URL is safe to redirect to.
Namespace
Drupal\Core\Routing
Code
public function setRequestContext(RequestContext $request_context) { $this->requestContext = $request_context; return $this; }
Please login to continue.