. namespace mod_feedback\output; use plugin_renderer_base; /** * Class renderer * * @package mod_feedback * @copyright 2021 Peter Dias * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ class renderer extends plugin_renderer_base { /** * Generate the tertiary nav * * @param base_action_bar $actionmenu * @return bool|string */ public function main_action_bar(base_action_bar $actionmenu) { $context = $actionmenu->export_for_template($this); return $this->render_from_template('mod_feedback/main_action_menu', $context); } /** * Render the create template form * * @param int $id * @return bool|string * @deprecated since 4.5 * @todo MDL-82164 This will be deleted in Moodle 6.0. */ #[\core\attribute\deprecated(replacement: null, since: '4.5')] public function create_template_form(int $id) { \core\deprecation::emit_deprecation_if_present([self::class, __FUNCTION__]); return $this->render_from_template('mod_feedback/create_template', ['id' => $id]); } }