function get_data() {
        $data = parent::get_data();

        if ($data !== null and isset($data->description)) {
            $data->descriptionformat = $data->description['format'];
            $data->description = $data->description['text'];
        }

        return $data;
    }
function get_data() {
        $data = parent::get_data();

        if ($data !== null and isset($data->description)) {
            $data->descriptionformat = $data->description['format'];
            $data->description = $data->description['text'];
        }

        return $data;
    }
function get_data ( ) { $ data = parent :: get_data ( ) ; if ( $ data !== null and isset ( $ data -> description ) ) { $ data -> descriptionformat = $ data -> description [ 'format' ] ; $ data -> description = $ data -> description [ 'text' ] ; } return $ data ; }
Used to reformat the data from the editor component

@return stdClass
Used to reformat the data from the editor component