ILIAS  trunk Revision v11.0_alpha-1713-gd8962da2f67
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
breadcrumbs.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
22 
33 function breadcrumbs()
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
breadcrumbs()
description: > Example showing how to construct Breadcrumbs with an array of Links and extending the...
Definition: breadcrumbs.php:33