Class containing the navigation renderable.
More...
|
boolean | $firstelement = true |
| $firstelement This is used to create unique classes for the first elements in the navigation tree.
|
|
array | $tree |
| $tree Full tree in multidimensional form.
|
|
Class containing the navigation renderable.
- Copyright
- 2018 Adrian Greeve
- License
- http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
◆ __construct()
core_privacy\output\exported_navigation_page::__construct |
( |
\stdClass | $tree | ) |
|
Constructor.
- Parameters
-
stdClass | $tree | Full tree to create navigation out of. |
◆ create_navigation()
core_privacy\output\exported_navigation_page::create_navigation |
( |
\stdClass | $tree | ) |
|
|
protected |
Creates the navigation list html.
Why this and not a template? My attempts at trying to get a recursive template working failed.
- Parameters
-
stdClass | $tree | Full tree to create navigation out of. |
- Return values
-
◆ export_for_template()
core_privacy\output\exported_navigation_page::export_for_template |
( |
renderer_base | $output | ) |
|
Export this data so it can be used as the context for a mustache template.
- Parameters
-
- Return values
-
array | navigation data for the template. |
Implements templatable.
The documentation for this class was generated from the following file:
- privacy/classes/output/exported_navigation_page.php