| Total Complexity | 4 |
| Total Lines | 31 |
| Duplicated Lines | 0 % |
| Coverage | 71.43% |
| Changes | 0 | ||
| 1 | <?php |
||
| 11 | class SimpleRewriteProvider implements ProviderInterface { |
||
| 12 | |||
| 13 | /** |
||
| 14 | * A map where keys or from template names and values are to template names. |
||
| 15 | * |
||
| 16 | * @var string[] |
||
| 17 | */ |
||
| 18 | protected $templateMap; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * Creates a simple template name mapping override provider. |
||
| 22 | * |
||
| 23 | * @param string[] $template_map |
||
| 24 | * A map where keys or from template names and values are to template names. |
||
| 25 | */ |
||
| 26 | 14 | public function __construct(array $template_map) { |
|
| 28 | 14 | } |
|
| 29 | |||
| 30 | /** |
||
| 31 | * {@inheritdoc} |
||
| 32 | */ |
||
| 33 | 14 | public function rewriteTemplateName($template_name, array $with, array $_context, $only) { |
|
| 35 | } |
||
| 36 | |||
| 37 | /** |
||
| 38 | * {@inheritdoc} |
||
| 39 | */ |
||
| 40 | public function preprocessTemplateArgs($template_name, array $with, array $_context, $only) { |
||
| 45 |