protected static function transform_template_brief(template $template) {
        global $OUTPUT;
        $exporter = new \core_competency\external\template_exporter($template);
        $data = $exporter->export($OUTPUT);
        return [
            'name' => $data->shortname,
            'description' => $data->description
        ];
    }
protected static function transform_template_brief(template $template) {
        global $OUTPUT;
        $exporter = new \core_competency\external\template_exporter($template);
        $data = $exporter->export($OUTPUT);
        return [
            'name' => $data->shortname,
            'description' => $data->description
        ];
    }
protected static function transform_template_brief ( template $ template ) { global $ OUTPUT ; $ exporter = new \ core_competency \ external \ template_exporter ( $ template ) ; $ data = $ exporter -> export ( $ OUTPUT ) ; return [ 'name' => $ data -> shortname , 'description' => $ data -> description ] ; }
Transform a template into a brief description.

@param template $template The Template.
@return array
Transform a template into a brief description .