mirror of
https://github.com/Icinga/icingaweb2-module-businessprocess.git
synced 2026-01-24 04:52:53 -05:00
Controller: add loadForm helper method
This commit is contained in:
parent
bf5b3424be
commit
960446a16e
1 changed files with 6 additions and 0 deletions
|
|
@ -11,6 +11,7 @@ use Icinga\Module\Businessprocess\Storage\LegacyStorage;
|
|||
use Icinga\Module\Monitoring\Backend;
|
||||
use Icinga\Web\Controller as ModuleController;
|
||||
use Icinga\Web\Notification;
|
||||
use Icinga\Module\Director\Web\Form\FormLoader;
|
||||
use Icinga\Web\Url;
|
||||
use Icinga\Web\Widget;
|
||||
|
||||
|
|
@ -119,6 +120,11 @@ class Controller extends ModuleController
|
|||
return $bp;
|
||||
}
|
||||
|
||||
public function loadForm($name)
|
||||
{
|
||||
return FormLoader::load($name, $this->Module());
|
||||
}
|
||||
|
||||
protected function storage()
|
||||
{
|
||||
if ($this->storage === null) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue