| 1 | <?php |
||
| 23 | class AmpExtension extends AbstractExtension |
||
| 24 | { |
||
| 25 | /** |
||
| 26 | * @var AmpUrlGeneratorInterface |
||
| 27 | */ |
||
| 28 | private $ampUrlGenerator; |
||
| 29 | |||
| 30 | /** |
||
| 31 | * @param AmpUrlGeneratorInterface $ampUrlGenerator |
||
| 32 | */ |
||
| 33 | public function __construct(AmpUrlGeneratorInterface $ampUrlGenerator) |
||
| 37 | |||
| 38 | /** |
||
| 39 | * {@inheritdoc} |
||
| 40 | */ |
||
| 41 | public function getFilters() |
||
| 47 | |||
| 48 | /** |
||
| 49 | * Returns an AMP URL. |
||
| 50 | * |
||
| 51 | * @param $url URL |
||
| 52 | * |
||
| 53 | * @return string |
||
| 54 | */ |
||
| 55 | public function ampFilter($url) |
||
| 59 | |||
| 60 | /** |
||
| 61 | * {@inheritdoc} |
||
| 62 | */ |
||
| 63 | public function getName() |
||
| 67 | } |
||
| 68 |