You are here

public function RequestDataCollector::getRouteParams in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/http-kernel/DataCollector/RequestDataCollector.php \Symfony\Component\HttpKernel\DataCollector\RequestDataCollector::getRouteParams()

Gets the route parameters.

The _route_params request attributes is automatically set by the RouterListener.

Return value

array The parameters

File

vendor/symfony/http-kernel/DataCollector/RequestDataCollector.php, line 273

Class

RequestDataCollector
RequestDataCollector.

Namespace

Symfony\Component\HttpKernel\DataCollector

Code

public function getRouteParams() {
  return isset($this->data['request_attributes']['_route_params']) ? $this->data['request_attributes']['_route_params'] : array();
}