original_string: 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;
      }
code: 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;
      }
code_tokens: 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 ; }
docstring: 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
docstring_tokens: 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 .