You are here

public function RouteMatchInterface::getParameters in Drupal 8

Same name and namespace in other branches
  1. 9 core/lib/Drupal/Core/Routing/RouteMatchInterface.php \Drupal\Core\Routing\RouteMatchInterface::getParameters()
  2. 10 core/lib/Drupal/Core/Routing/RouteMatchInterface.php \Drupal\Core\Routing\RouteMatchInterface::getParameters()

Returns the bag of all processed route parameters.

Raw URL parameters are processed by the parameter conversion system, which does operations such as converting entity ID parameters to fully-loaded entities. For example, the path node/12345 would have a raw node ID parameter value of 12345, while the processed parameter value would be the corresponding loaded node object.

Return value

\Symfony\Component\HttpFoundation\ParameterBag The parameter bag.

See also

\Drupal\Core\Routing\RouteMatchInterface::getRawParameters()

3 methods override RouteMatchInterface::getParameters()
CurrentRouteMatch::getParameters in core/lib/Drupal/Core/Routing/CurrentRouteMatch.php
Returns the bag of all processed route parameters.
NullRouteMatch::getParameters in core/lib/Drupal/Core/Routing/NullRouteMatch.php
Returns the bag of all processed route parameters.
RouteMatch::getParameters in core/lib/Drupal/Core/Routing/RouteMatch.php
Returns the bag of all processed route parameters.

File

core/lib/Drupal/Core/Routing/RouteMatchInterface.php, line 72

Class

RouteMatchInterface
Provides an interface for classes representing the result of routing.

Namespace

Drupal\Core\Routing

Code

public function getParameters();