You are here

public function RequestContext::hasParameter in Zircon Profile 8

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

Checks if a parameter value is set for the given parameter.

Parameters

string $name A parameter name:

Return value

bool True if the parameter value is set, false otherwise

File

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

Class

RequestContext
Holds information about the current request.

Namespace

Symfony\Component\Routing

Code

public function hasParameter($name) {
  return array_key_exists($name, $this->parameters);
}