ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ILIAS\UI\examples\Breadcrumbs Namespace Reference

Functions

 breadcrumbs ()
 

Function Documentation

◆ breadcrumbs()

ILIAS\UI\examples\Breadcrumbs\breadcrumbs ( )

description: > Example showing how to construct Breadcrumbs with an array of Links and extending the Breadcrumbs afterwards.

expected output: >

ILIAS shows two rows of clickable links separated by simple arrows (>).

Definition at line 33 of file breadcrumbs.php.

34{
35 global $DIC;
36 $renderer = $DIC->ui()->renderer();
37 $f = $DIC->ui()->factory();
38
39 $crumbs = array(
40 $f->link()->standard("entry1", '#'),
41 $f->link()->standard("entry2", '#'),
42 $f->link()->standard("entry3", '#'),
43 $f->link()->standard("entry4", '#')
44 );
45
46 $bar = $f->breadcrumbs($crumbs);
47
48 $bar_extended = $bar->withAppendedItem(
49 $f->link()->standard("entry5", '#')
50 );
51
52 return $renderer->render($bar)
53 . $renderer->render($bar_extended);
54}
$renderer
global $DIC
Definition: shib_login.php:26

References Vendor\Package\$bar, $DIC, Vendor\Package\$f, and $renderer.

Referenced by ILIAS\UI\Implementation\Component\Layout\Page\Standard\__construct(), BreadcrumbsTest\getFactory(), TreeMultiSelectTest\getUIFactory(), and TreeSelectTest\getUIFactory().

+ Here is the caller graph for this function: