Total Complexity | 4 |
Total Lines | 33 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
10 | class TestRewriteProvider extends SimpleRewriteProvider { |
||
11 | |||
12 | /** |
||
13 | * A map of rewrites. |
||
14 | * |
||
15 | * @var array |
||
16 | */ |
||
17 | private $paramMap; |
||
18 | |||
19 | /** |
||
20 | * Creates a TestRewriteProvider object. |
||
21 | * |
||
22 | * @param array $template_map |
||
23 | * A map where keys are 'from' template names and values are 'to' template |
||
24 | * names. |
||
25 | * @param array $param_map |
||
26 | * A map where keys are 'from' param names and values are 'to' param names. |
||
27 | */ |
||
28 | public function __construct(array $template_map, array $param_map) { |
||
29 | parent::__construct($template_map); |
||
30 | $this->paramMap = $param_map; |
||
31 | } |
||
32 | |||
33 | /** |
||
34 | * {@inheritdoc} |
||
35 | */ |
||
36 | public function preprocessTemplateArgs($template_name, array $with, array $_context, $only) { |
||
43 | } |
||
44 | |||
46 |