ILIAS  trunk Revision v12.0_alpha-377-g3641b37b9db
with_additional_form_action.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
35{
36 global $DIC;
37
38 $factory = $DIC->ui()->factory();
39 $renderer = $DIC->ui()->renderer();
40
41 $input = $factory->input()->field()->text("Pseudo input");
42
43 $form = $factory->input()->container()->form()->standard("#0", [$input]);
44
45 $form = $form->withAdditionalFormAction('#1', 'Action 1');
46 $form = $form->withAdditionalFormAction('#2', 'Action 2');
47 $form = $form->withSubmitLabel('Main Action');
48
49 return $renderer->render($form);
50}
$renderer
global $DIC
Definition: shib_login.php:26