Moodle PHP Documentation 4.4
Moodle 4.4.1 (Build: 20240610) (db07c09afc5)
|
This class will call shorten_text with the section content. More...
Public Member Functions | |
shorten ($args, Mustache_LambdaHelper $helper) | |
Read a length and text component from the string. | |
This class will call shorten_text with the section content.
core\output\mustache_shorten_text_helper::shorten | ( | $args, | |
Mustache_LambdaHelper | $helper ) |
Read a length and text component from the string.
{{#shortentext}}50,Some test to shorten{{/shortentext}}
Both args are required. The length must come first.
string | $args | The text to parse for arguments. |
Mustache_LambdaHelper | $helper | Used to render nested mustache variables. |
string |