File: configuration.php

package info (click to toggle)
icingaweb2-module-pnp 1.1.0-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, sid
  • size: 152 kB
  • sloc: php: 372; makefile: 11
file content (19 lines) | stat: -rw-r--r-- 544 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<?php

/** @var $this Icinga\Application\Modules\Module */
$this->provideConfigTab('config', array(
    'title' => $this->translate('Configure this module'),
    'label' => $this->translate('Config'),
    'url' => 'config'
));


$menuDisabled = $this->getConfig()->get('pnp4nagios', 'menu_disabled');
if (! $menuDisabled) {
    /** @var \Icinga\Web\Navigation\NavigationItem $section */
    $section = $this->menuSection('pnp');
    $section->setLabel('PNP')
        ->setUrl('pnp')
        ->setIcon('chart-line')
        ->setPriority(50);
}