Go to the source code of this file.
|
| base () |
| Base example performing a page reload if active view is changed. More...
|
|
◆ base()
Base example performing a page reload if active view is changed.
Definition at line 5 of file base.php.
References $_GET, $DIC, Vendor\Package\$f, and $param.
9 $f = $DIC->ui()->factory();
10 $renderer = $DIC->ui()->renderer();
13 $target = $DIC->http()->request()->getRequestTarget();
23 "$param 1" =>
"$target&$param=1",
24 "$param 2" =>
"$target&$param=2",
25 "$param 3" =>
"$target&$param=3",
28 $aria_label =
"change_the_currently_displayed_mode";
29 $view_control =
$f->viewControl()->mode($actions, $aria_label)->withActive(
"$param $active");
30 $html = $renderer->render($view_control);