summaryrefslogtreecommitdiffstats
path: root/application/forms/Config/GlobalConfigForm.php
blob: 5b4bf2a5eba22c6defef73e47b506b3889db4f1c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<?php
/* Icinga Web 2 - EventDB | (c) 2018 Icinga Development Team | GPLv2+ */

namespace Icinga\Module\Eventdb\Forms\Config;

use Icinga\Forms\ConfigForm;

class GlobalConfigForm extends ConfigForm
{
    /**
     * {@inheritdoc}
     */
    public function init()
    {
        $this->setSubmitLabel($this->translate('Save'));
    }

    /**
     * {@inheritdoc}
     */
    public function createElements(array $formData)
    {
        $this->addElement(
            'text',
            'global_default_filter',
            array(
                'description' => $this->translate('Filter to be used by the menu link for EventDB by default'),
                'label'       => $this->translate('Default Filter')
            )
        );
    }
}