. /** * Renderer. * * @package tool_mobile * @copyright 2020 Moodle Pty Ltd * @author * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ namespace tool_mobile\output; use plugin_renderer_base; /** * Renderer class. * * @package tool_mobile * @copyright 2020 Moodle Pty Ltd * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ class renderer extends plugin_renderer_base { /** * Defer to template. * * @param \tool_mobile\output\subscription $subscription Subscription * @return string HTML */ protected function render_subscription(\tool_mobile\output\subscription $subscription): string { $data = $subscription->export_for_template($this); return parent::render_from_template('tool_mobile/subscription', $data); } }