public function RequestContextAwareInterface::setContext

Sets the request context.

@api

Parameters

RequestContext $context The context:

5 methods override RequestContextAwareInterface::setContext()
ChainMatcher::setContext in drupal/core/lib/Drupal/Core/Routing/ChainMatcher.php
Sets the request context.
LegacyUrlMatcher::setContext in drupal/core/lib/Drupal/Core/LegacyUrlMatcher.php
Sets the request context.
Router::setContext in drupal/core/vendor/symfony/routing/Symfony/Component/Routing/Router.php
Sets the request context.
UrlGenerator::setContext in drupal/core/vendor/symfony/routing/Symfony/Component/Routing/Generator/UrlGenerator.php
Sets the request context.
UrlMatcher::setContext in drupal/core/vendor/symfony/routing/Symfony/Component/Routing/Matcher/UrlMatcher.php
Sets the request context.

File

drupal/core/vendor/symfony/routing/Symfony/Component/Routing/RequestContextAwareInterface.php, line 26

Class

RequestContextAwareInterface
@api

Namespace

Symfony\Component\Routing

Code

public function setContext(RequestContext $context);