LocalAwareRedirectResponseTrait::setRequestContext

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;
}
doc_Drupal
2016-10-29 09:23:45
Comments
Leave a Comment

Please login to continue.