Moodle APIs  3.8
Moodle 3.8.6 (Build: 20201109)
Public Member Functions | List of all members
core\output\mustache_shorten_text_helper Class Reference

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. More...
 

Detailed Description

This class will call shorten_text with the section content.

License
http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later

Member Function Documentation

◆ shorten()

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.

Parameters
string$argsThe text to parse for arguments.
Mustache_LambdaHelper$helperUsed to render nested mustache variables.
Return values
string

The documentation for this class was generated from the following file: