summaryrefslogtreecommitdiffstats
path: root/application/controllers/NotificationtemplateController.php
blob: 0b8602ccc5d8c5ab328161681e33c3b6275e137a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<?php

namespace Icinga\Module\Director\Controllers;

use Icinga\Module\Director\Objects\IcingaNotification;
use Icinga\Module\Director\Web\Controller\TemplateController;

class NotificationtemplateController extends TemplateController
{
    protected function requireTemplate()
    {
        return IcingaNotification::load([
            'object_name' => $this->params->get('name')
        ], $this->db());
    }
}