ILIAS  trunk Revision v11.0_alpha-1831-g8615d53dadb
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
ILIAS\UI\examples\Breadcrumbs Namespace Reference

Functions

 breadcrumbs ()
 

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

 

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.

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

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

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:22
+ Here is the caller graph for this function: