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.
6{
7
10 $renderer =
$DIC->ui()->renderer();
11
12
13 $target =
$DIC->http()->request()->getRequestTarget();
15
16 $active = 1;
19 }
20
21
22 $actions = array(
23 "$param 1" => "$target&$param=1",
24 "$param 2" => "$target&$param=2",
25 "$param 3" => "$target&$param=3",
26 );
27
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);
31
32 return $html;
33}
References $_GET, $DIC, Vendor\Package\$f, and $param.