MDL-69087 core_h5p: add renderer to let personalize styles

Existing mod_hvp pluging has a renderer to let Moodle instances
alter styles, Javascript, semantics (fields in the editor) and
content: https://github.com/h5p/moodle-mod_hvp/blob/stable/renderer.php

The approach for core_h5p is exactly the same, to let people
to reuse their existing code.
This commit is contained in:
Sara Arjona 2020-09-04 18:53:32 +02:00
parent 5486b031ee
commit c68897b7e6
6 changed files with 100 additions and 18 deletions

View file

@ -44,6 +44,9 @@ $action = required_param('action', PARAM_ALPHA);
$factory = new factory();
$editor = $factory->get_editor();
// Set context to default system context.
$PAGE->set_context(null);
switch ($action) {
// Load list of libraries or details for library.
case 'libraries':