Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
RouteParamsPreprocessorComposite.php
Go to the documentation of this file.
1 <?php
6 namespace Magento\Framework\Url;
7 
12 {
16  private $routeParamsPreprocessors;
17 
21  public function __construct(array $routeParamsPreprocessors = [])
22  {
23  $this->routeParamsPreprocessors = $routeParamsPreprocessors;
24  }
25 
29  public function execute($areaCode, $routePath, $routeParams)
30  {
31  foreach ($this->routeParamsPreprocessors as $preprocessor) {
32  $routeParams = $preprocessor->execute($areaCode, $routePath, $routeParams);
33  }
34 
35  return $routeParams;
36  }
37 }