1 | <?php |
||
5 | class DynamicSeoPageBuilder implements PageBuilder |
||
6 | { |
||
7 | /** @var array */ |
||
8 | protected $context = []; |
||
9 | /** @var \Twig_Environment */ |
||
10 | protected $twig; |
||
11 | /** @var SeoPageBuilder */ |
||
12 | protected $builder; |
||
13 | |||
14 | /** |
||
15 | * DynamicSeoPageBuilder constructor. |
||
16 | * |
||
17 | * @param \Twig_Environment $twig |
||
18 | * @param SeoPageBuilder $builder |
||
19 | */ |
||
20 | 2 | public function __construct(\Twig_Environment $twig = null, SeoPageBuilder $builder = null) |
|
25 | |||
26 | /** |
||
27 | * @param array $context |
||
28 | * |
||
29 | * @return $this |
||
30 | */ |
||
31 | 2 | public function setContext(array $context) |
|
37 | |||
38 | /** {@inheritdoc} */ |
||
39 | 2 | public function getSeoPage() |
|
46 | |||
47 | /** {@inheritdoc} */ |
||
48 | 1 | public function setMeta(array $meta) |
|
54 | |||
55 | /** {@inheritdoc} */ |
||
56 | 2 | public function setTitle($title) |
|
62 | |||
63 | /** {@inheritdoc} */ |
||
64 | 1 | public function setCanonicalLink($canonical = null) |
|
70 | |||
71 | /** {@inheritdoc} */ |
||
72 | public function setHtmlAttributes(array $htmlAttributes) |
||
78 | |||
79 | /** {@inheritdoc} */ |
||
80 | public function setBreadcrumbs(array $breadcrumbs) |
||
86 | |||
87 | 2 | public static function create() |
|
91 | |||
92 | /** |
||
93 | * @param PageBuilder $builder |
||
94 | */ |
||
95 | 2 | protected function build(PageBuilder $builder) |
|
103 | |||
104 | 2 | protected function render($string) |
|
108 | |||
109 | 1 | protected function renderMeta(HtmlMetaInterface $meta) |
|
125 | } |
||
126 |