Conditions | 2 |
Paths | 2 |
Total Lines | 15 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
57 | public function render() |
||
58 | { |
||
59 | /** @var Notification $notification */ |
||
60 | $notification = $this->arguments['notification']; |
||
61 | |||
62 | if (!$notification instanceof Activable) { |
||
63 | return ''; |
||
64 | } |
||
65 | |||
66 | $uri = $notification->getSwitchActivationUri($this->arguments['eventDefinition']); |
||
67 | |||
68 | $this->tag->addAttribute('href', $uri); |
||
69 | $this->tag->setContent($this->renderChildren()); |
||
70 | |||
71 | return $this->tag->render(); |
||
72 | } |
||
74 |