1 | <?php |
||
13 | class SeoExtension extends \Twig_Extension |
||
14 | { |
||
15 | /** |
||
16 | * @var SeoGeneratorProvider |
||
17 | */ |
||
18 | protected $generatorProvider; |
||
19 | |||
20 | /** |
||
21 | * SeoExtension constructor. |
||
22 | * |
||
23 | * @param SeoGeneratorProvider $generatorProvider |
||
24 | */ |
||
25 | public function __construct(SeoGeneratorProvider $generatorProvider) |
||
29 | |||
30 | /** |
||
31 | * {@inheritdoc} |
||
32 | */ |
||
33 | public function getFunctions() |
||
39 | |||
40 | /** |
||
41 | * @param $alias |
||
42 | * |
||
43 | * @return string |
||
44 | */ |
||
45 | public function seo($alias = null) |
||
57 | |||
58 | /** |
||
59 | * Returns the name of the extension. |
||
60 | * |
||
61 | * @return string The extension name |
||
62 | */ |
||
63 | public function getName() |
||
67 | } |
||
68 |