1: <?php
2: /**
3: * PHP version 5
4: * @package generalDriver
5: * @author Christian Schiffler <c.schiffler@cyberspectrum.de>
6: * @author Stefan Heimes <stefan_heimes@hotmail.com>
7: * @author Tristan Lins <tristan.lins@bit3.de>
8: * @copyright The MetaModels team.
9: * @license LGPL.
10: * @filesource
11: */
12:
13: namespace DcGeneral\Contao\View\Contao2BackendView\Event;
14:
15: use DcGeneral\Event\AbstractEnvironmentAwareEvent;
16:
17: /**
18: * Class GetParentHeaderEvent.
19: *
20: * This event gets emitted when the header section of a parent view is generated.
21: *
22: * @package DcGeneral\Contao\View\Contao2BackendView\Event
23: */
24: class GetParentHeaderEvent
25: extends AbstractEnvironmentAwareEvent
26: {
27: const NAME = 'dc-general.view.contao2backend.get-parent-header';
28:
29: /**
30: * The additional lines that shall be added to the header section.
31: *
32: * @var array
33: */
34: protected $additional;
35:
36: /**
37: * Set the additional lines that shall be added to the header section.
38: *
39: * @param array $additional The lines to use as header.
40: *
41: * @return $this
42: */
43: public function setAdditional($additional)
44: {
45: $this->additional = $additional;
46:
47: return $this;
48: }
49:
50: /**
51: * Get the additional lines that shall be added to the header section.
52: *
53: * @return array
54: */
55: public function getAdditional()
56: {
57: return $this->additional;
58: }
59: }
60: