protected function get_file_record() {
        $file = $this->get_sourcefile();

        if (!$file) {
            // If the source file was removed before we completed, we must return early.
            return false;
        }

        return [
            'contextid' => \context_system::instance()->id,
            'component' => 'core',
            'filearea'  => 'documentconversion',
            'itemid'    => 0,
            'filepath'  => "/" . $this->get('targetformat') . "/",
            'filename'  => $file->get_contenthash(),
        ];
    }
protected function get_file_record() {
        $file = $this->get_sourcefile();

        if (!$file) {
            // If the source file was removed before we completed, we must return early.
            return false;
        }

        return [
            'contextid' => \context_system::instance()->id,
            'component' => 'core',
            'filearea'  => 'documentconversion',
            'itemid'    => 0,
            'filepath'  => "/" . $this->get('targetformat') . "/",
            'filename'  => $file->get_contenthash(),
        ];
    }
protected function get_file_record ( ) { $ file = $ this -> get_sourcefile ( ) ; if ( ! $ file ) { // If the source file was removed before we completed, we must return early. return false ; } return [ 'contextid' => \ context_system :: instance ( ) -> id , 'component' => 'core' , 'filearea' => 'documentconversion' , 'itemid' => 0 , 'filepath' => "/" . $ this -> get ( 'targetformat' ) . "/" , 'filename' => $ file -> get_contenthash ( ) , ] ; }
Return the file record base for use in the files table.

@return  array|bool
Return the file record base for use in the files table .