original_string: private function fallback_to_link($urls, $name, $options) {
          // If link is turned off, return empty.
          if (!empty($options[self::OPTION_NO_LINK])) {
              return '';
          }
  
          // Build up link content.
          $output = '';
          foreach ($urls as $url) {
              if (strval($name) !== '' && $output === '') {
                  $title = $name;
              } else {
                  $title = $this->get_filename($url);
              }
              $printlink = html_writer::link($url, $title, array('class' => 'mediafallbacklink'));
              if ($output) {
                  // Where there are multiple available formats, there are fallback links
                  // for all formats, separated by /.
                  $output .= ' / ';
              }
              $output .= $printlink;
          }
          return $output;
      }
code: private function fallback_to_link($urls, $name, $options) {
          // If link is turned off, return empty.
          if (!empty($options[self::OPTION_NO_LINK])) {
              return '';
          }
  
          // Build up link content.
          $output = '';
          foreach ($urls as $url) {
              if (strval($name) !== '' && $output === '') {
                  $title = $name;
              } else {
                  $title = $this->get_filename($url);
              }
              $printlink = html_writer::link($url, $title, array('class' => 'mediafallbacklink'));
              if ($output) {
                  // Where there are multiple available formats, there are fallback links
                  // for all formats, separated by /.
                  $output .= ' / ';
              }
              $output .= $printlink;
          }
          return $output;
      }
code_tokens: private function fallback_to_link ( $ urls , $ name , $ options ) { // If link is turned off, return empty. if ( ! empty ( $ options [ self :: OPTION_NO_LINK ] ) ) { return '' ; } // Build up link content. $ output = '' ; foreach ( $ urls as $ url ) { if ( strval ( $ name ) !== '' && $ output === '' ) { $ title = $ name ; } else { $ title = $ this -> get_filename ( $ url ) ; } $ printlink = html_writer :: link ( $ url , $ title , array ( 'class' => 'mediafallbacklink' ) ) ; if ( $ output ) { // Where there are multiple available formats, there are fallback links // for all formats, separated by /. $ output .= ' / ' ; } $ output .= $ printlink ; } return $ output ; }
docstring: Returns links to the specified URLs unless OPTION_NO_LINK is passed.
  
  @param array $urls URLs of media files
  @param string $name Display name; '' to use default
  @param array $options Options array
  @return string HTML code for embed
docstring_tokens: Returns links to the specified URLs unless OPTION_NO_LINK is passed .