Skip to content
Snippets Groups Projects

Resolve #3202329 "Outbound path processors"

1 file
+ 3
1
Compare changes
  • Side-by-side
  • Inline
@@ -308,9 +308,11 @@ public function generateFromRoute(string $name, array $parameters = [], array $o
$this->processRoute($name, $route, $parameters, $generated_url);
$path = $this->getInternalPathFromRoute($name, $route, $parameters, $options['query']);
// Outbound path processors might need the route object for the path, e.g.
// Outbound path processors might need the route information for the path, e.g.
// to get the path pattern.
$options['route'] = $route;
$options['route_name'] = $name;
$options['route_parameters'] = $parameters;
if ($options['path_processing']) {
$path = $this->processPath($path, $options, $generated_url);
}
Loading