Conditions | 2 |
Paths | 2 |
Total Lines | 14 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
55 | public function renderTracker(array $options = []): string |
||
56 | { |
||
57 | $data = array_merge([ |
||
58 | 'site_id' => null, |
||
59 | 'matomo_host' => 'localhost', |
||
60 | 'cookie_domain' => null, |
||
61 | ], $options); |
||
62 | |||
63 | if (null === $data['site_id']) { |
||
64 | return ''; |
||
65 | } |
||
66 | |||
67 | return $this->environment->render('@Core23Matomo/tracker_code.html.twig', $data); |
||
68 | } |
||
69 | } |
||
70 |