' . t('About') . ''; $output .= '

' . t('DownloadFile is a module to direct download files or images.') . '

'; return $output; } } /** * Implements hook_theme(). */ function download_file_theme() { return [ 'direct_download_file_link' => [ 'variables' => [ 'file_id' => NULL, 'link_text' => NULL, 'url' => NULL, 'attributes' => [], ], ], ]; } /** * Render the direct download file link. */ function template_preprocess_direct_download_file_link(&$variables) { $variables['link'] = Link::fromTextAndUrl($variables['link_text'], $variables['url']); }