moodle_view_adapter
class moodle_view_adapter implements view_adapter_interface
Adapter that provides View rendering using Moodle's native $PAGE and $OUTPUT.
Methods
void
set_title(string $title)
Set the page title.
void
set_heading(string $heading)
Set the page heading.
void
set_layout(string $layout)
Set the page layout (e.g., 'admin', 'standard').
void
add_breadcrumb(string $text, mixed $url = null)
Add a navigation node to the breadcrumbs.
string
render_template(string $template_name, array $data = [])
Render a template with data.
string
render_page(string $content)
Render raw HTML as a full page.
Details
at line 32
void
set_title(string $title)
Set the page title.
at line 41
void
set_heading(string $heading)
Set the page heading.
at line 50
void
set_layout(string $layout)
Set the page layout (e.g., 'admin', 'standard').
at line 59
void
add_breadcrumb(string $text, mixed $url = null)
Add a navigation node to the breadcrumbs.
at line 69
string
render_template(string $template_name, array $data = [])
Render a template with data.
at line 80
string
render_page(string $content)
Render raw HTML as a full page.