Moodle PHP Documentation 4.4
Moodle 4.4.1 (Build: 20240610) (db07c09afc5)
|
This class will call pix_icon with the section content. More...
Public Member Functions | |
__construct (renderer_base $renderer) | |
Save a reference to the renderer. | |
pix ($text, Mustache_LambdaHelper $helper) | |
Read a pix icon name from a template and get it from pix_icon. | |
This class will call pix_icon with the section content.
core\output\mustache_pix_helper::__construct | ( | renderer_base | $renderer | ) |
Save a reference to the renderer.
renderer_base | $renderer |
core\output\mustache_pix_helper::pix | ( | $text, | |
Mustache_LambdaHelper | $helper ) |
Read a pix icon name from a template and get it from pix_icon.
{{#pix}}t/edit,component,Anything else is alt text{{/pix}}
The args are comma separated and only the first is required.
string | $text | The text to parse for arguments. |
Mustache_LambdaHelper | $helper | Used to render nested mustache variables. |
string |