You are here

public function RequestContext::getParameter in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/routing/RequestContext.php \Symfony\Component\Routing\RequestContext::getParameter()

Gets a parameter value.

Parameters

string $name A parameter name:

Return value

mixed The parameter value or null if nonexistent

File

vendor/symfony/routing/RequestContext.php, line 313

Class

RequestContext
Holds information about the current request.

Namespace

Symfony\Component\Routing

Code

public function getParameter($name) {
  return isset($this->parameters[$name]) ? $this->parameters[$name] : null;
}