protected static function transform_competency_brief(competency $competency) {
        global $OUTPUT;
        $exporter = new \core_competency\external\competency_exporter($competency, ['context' => $competency->get_context()]);
        $data = $exporter->export($OUTPUT);
        return [
            'idnumber' => $data->idnumber,
            'name' => $data->shortname,
            'description' => $data->description
        ];
    }
protected static function transform_competency_brief(competency $competency) {
        global $OUTPUT;
        $exporter = new \core_competency\external\competency_exporter($competency, ['context' => $competency->get_context()]);
        $data = $exporter->export($OUTPUT);
        return [
            'idnumber' => $data->idnumber,
            'name' => $data->shortname,
            'description' => $data->description
        ];
    }
protected static function transform_competency_brief ( competency $ competency ) { global $ OUTPUT ; $ exporter = new \ core_competency \ external \ competency_exporter ( $ competency , [ 'context' => $ competency -> get_context ( ) ] ) ; $ data = $ exporter -> export ( $ OUTPUT ) ; return [ 'idnumber' => $ data -> idnumber , 'name' => $ data -> shortname , 'description' => $ data -> description ] ; }
Transform a competency into a brief description.

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