icingaweb2-module-director/application/controllers/NotificationtemplateController.php

20 lines
527 B
PHP
Raw Permalink Normal View History

<?php
// SPDX-FileCopyrightText: 2018 Icinga GmbH <https://icinga.com>
// SPDX-License-Identifier: GPL-3.0-or-later
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());
}
}