original_string: public static function get_async_backup_links_backup($filename, $contextid) {
          // Parameter validation.
          self::validate_parameters(
                  self::get_async_backup_links_backup_parameters(),
                      array(
                          'filename' => $filename,
                          'contextid' => $contextid
                      )
                  );
  
          // Context validation.
          list($context, $course, $cm) = get_context_info_array($contextid);
          self::validate_context($context);
          require_capability('moodle/backup:backupcourse', $context);
  
          if ($cm) {
              $filearea = 'activity';
          } else {
              $filearea = 'course';
          }
  
          $results = \async_helper::get_backup_file_info($filename, $filearea, $contextid);
  
          return $results;
      }
code: public static function get_async_backup_links_backup($filename, $contextid) {
          // Parameter validation.
          self::validate_parameters(
                  self::get_async_backup_links_backup_parameters(),
                      array(
                          'filename' => $filename,
                          'contextid' => $contextid
                      )
                  );
  
          // Context validation.
          list($context, $course, $cm) = get_context_info_array($contextid);
          self::validate_context($context);
          require_capability('moodle/backup:backupcourse', $context);
  
          if ($cm) {
              $filearea = 'activity';
          } else {
              $filearea = 'course';
          }
  
          $results = \async_helper::get_backup_file_info($filename, $filearea, $contextid);
  
          return $results;
      }
code_tokens: public static function get_async_backup_links_backup ( $ filename , $ contextid ) { // Parameter validation. self :: validate_parameters ( self :: get_async_backup_links_backup_parameters ( ) , array ( 'filename' => $ filename , 'contextid' => $ contextid ) ) ; // Context validation. list ( $ context , $ course , $ cm ) = get_context_info_array ( $ contextid ) ; self :: validate_context ( $ context ) ; require_capability ( 'moodle/backup:backupcourse' , $ context ) ; if ( $ cm ) { $ filearea = 'activity' ; } else { $ filearea = 'course' ; } $ results = \ async_helper :: get_backup_file_info ( $ filename , $ filearea , $ contextid ) ; return $ results ; }
docstring: Get the data to be used when generating the table row for an asynchronous backup,
  the table row updates via ajax when backup is complete.
  
  @param string $filename The file name of the backup file.
  @param int $contextid The context the backup relates to.
  @since Moodle 3.7
docstring_tokens: Get the data to be used when generating the table row for an asynchronous backup the table row updates via ajax when backup is complete .