You are here

function template_preprocess_direct_download_file_link in DownloadFile 8

File

./download_file.module, line 13

Code

function template_preprocess_direct_download_file_link(&$vars) {
  $url = URL::fromRoute('download_file.download_file_path', [
    'file_id' => $vars['file_id'],
  ]);
  $vars['link'] = Link::fromTextAndUrl($vars['link_text'], $url);
}