3 declare(strict_types=1);
13 $f = $DIC->ui()->factory();
14 $renderer = $DIC->ui()->renderer();
20 'default_option' =>
'Default Ordering',
21 'latest' =>
'Most Recent Ordering',
22 'oldest' =>
'Oldest Ordering' 26 $select_option =
'default_option';
32 $s =
$f->viewControl()->sortation($options)
33 ->withTargetURL($DIC->http()->request()->getRequestTarget(),
'sortation')
34 ->withLabel($options[$select_option]);
37 return $renderer->render($s);
Refinery Factory $refinery