blob: 1d20ee107d3927cd905f4eb70c6762176c4e0c9c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
<?php
namespace Icinga\Module\Director\Hook;
use Icinga\Module\Director\Web\Form\DirectorObjectForm;
use Icinga\Web\Hook;
abstract class IcingaObjectFormHook
{
protected $settings = [];
abstract public function onSetup(DirectorObjectForm $form);
public static function callOnSetup(DirectorObjectForm $form)
{
/** @var static[] $implementations */
$implementations = Hook::all('director/IcingaObjectForm');
foreach ($implementations as $implementation) {
$implementation->onSetup($form);
}
}
}
|