public function ChainMatcher::setContext

Sets the request context.

This method is just to satisfy the interface, and is largely vestigial. The request context object does not contain the information we need, so we will use the original request object.

Parameters

Symfony\Component\Routing\RequestContext $context: The context.

Overrides RequestContextAwareInterface::setContext

File

drupal/core/lib/Drupal/Core/Routing/ChainMatcher.php, line 68
Definition of Drupal\Core\Routing\ChainMatcher.

Class

ChainMatcher
Aggregates multiple matchers together in series.

Namespace

Drupal\Core\Routing

Code

public function setContext(RequestContext $context) {
  $this->context = $context;
}