Display H5P filter.
More...
Display H5P filter.
This filter will replace any occurrence of H5P URLs with the corresponding H5P content embed code
- Copyright
- 2019 Victor Deniz victo.nosp@m.r@mo.nosp@m.odle..nosp@m.com
- License
- http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
◆ filter()
filter_displayh5p::filter |
( |
|
$text, |
|
|
array |
$options = array() |
|
) |
| |
Function filter replaces any h5p-sources.
- Parameters
-
string | $text | HTML content to process |
array | $options | options passed to the filters |
- Return values
-
Reimplemented from moodle_text_filter.
◆ filterobject_prepare_replacement_callback()
filter_displayh5p::filterobject_prepare_replacement_callback |
( |
|
$tagbegin, |
|
|
|
$tagend, |
|
|
|
$urlmodifier |
|
) |
| |
Callback used by filterobject / filter_phrases.
- Parameters
-
string | $tagbegin | HTML to insert before any match |
string | $tagend | HTML to insert after any match |
string | $urlmodifier | string to add to the match URL |
- Return values
-
array | [$hreftagbegin, $hreftagend, $replacementphrase] for filterobject. |
The documentation for this class was generated from the following file: