public static function get_async_backup_links_restore($backupid, $contextid) {
        // Parameter validation.
        self::validate_parameters(
                self::get_async_backup_links_restore_parameters(),
                    array(
                        'backupid' => $backupid,
                        'contextid' => $contextid
                    )
                );

        // Context validation.
        $context = context::instance_by_id($contextid);
        self::validate_context($context);
        require_capability('moodle/restore:restorecourse', $context);

        $results = \async_helper::get_restore_url($backupid);

        return $results;
    }
public static function get_async_backup_links_restore($backupid, $contextid) {
        // Parameter validation.
        self::validate_parameters(
                self::get_async_backup_links_restore_parameters(),
                    array(
                        'backupid' => $backupid,
                        'contextid' => $contextid
                    )
                );

        // Context validation.
        $context = context::instance_by_id($contextid);
        self::validate_context($context);
        require_capability('moodle/restore:restorecourse', $context);

        $results = \async_helper::get_restore_url($backupid);

        return $results;
    }
public static function get_async_backup_links_restore ( $ backupid , $ contextid ) { // Parameter validation. self :: validate_parameters ( self :: get_async_backup_links_restore_parameters ( ) , array ( 'backupid' => $ backupid , 'contextid' => $ contextid ) ) ; // Context validation. $ context = context :: instance_by_id ( $ contextid ) ; self :: validate_context ( $ context ) ; require_capability ( 'moodle/restore:restorecourse' , $ context ) ; $ results = \ async_helper :: get_restore_url ( $ backupid ) ; return $ results ; }
Get the data to be used when generating the table row for an asynchronous restore,
the table row updates via ajax when restore is complete.

@param string $backupid The id of the backup record.
@param int $contextid The context the restore relates to.
@return array $results The array of results.
@since Moodle 3.7
Get the data to be used when generating the table row for an asynchronous restore the table row updates via ajax when restore is complete .