Update the defaults based on its own data and the request.
Parameters
array $defaults the getRouteDefaults array:
Return value
array the modified defaults. Each enhancer MUST return the $defaults but may add or remove values
File
- drupal/core/vendor/symfony-cmf/routing/Symfony/Cmf/Component/Routing/Enhancer/RouteEnhancerInterface.php, line 26
Class
- RouteEnhancerInterface
- A route enhancer can change the values in the route data arrays
Namespace
Symfony\Cmf\Component\Routing\Enhancer
Code
public function enhance(array $defaults, Request $request);