3declare(strict_types=1);
14 $f =
$DIC->ui()->factory();
15 $renderer =
$DIC->ui()->renderer();
20 $target =
$DIC->http()->request()->getRequestTarget();
30 "$param 1" =>
"$target&$param=1",
31 "$param 2" =>
"$target&$param=2",
32 "$param 3" =>
"$target&$param=3",
35 $aria_label =
"change_the_currently_displayed_mode";
36 $view_control =
$f->viewControl()->mode($actions, $aria_label)->withActive(
"$param $active");
37 $html = $renderer->render($view_control);
Refinery Factory $refinery
base()
Base example performing a page reload if active view is changed.