File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
public/themes/custom/asuntotuotanto Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 88use Drupal\Core\Url;
99use Drupal\Core\Site\Settings;
1010use Drupal\file\Entity\File;
11+ use Drupal\file\IconMimeTypes;
1112use Drupal\paragraphs\Entity\Paragraph;
1213use Drupal\Core\StringTranslation\ByteSizeMarkup;
1314use Drupal\taxonomy\Entity\Term;
@@ -1096,7 +1097,7 @@ function asuntotuotanto_preprocess_file_link(&$variables) {
10961097 // File type.
10971098 $file = $variables['file'];
10981099 $mime_type = $file->getMimeType();
1099- $variables['mime_type'] = file_icon_class ($mime_type);
1100+ $variables['mime_type'] = IconMimeTypes::getIconClass ($mime_type);
11001101 // File url.
11011102 /** @var \Drupal\Core\File\FileUrlGeneratorInterface $file_url_generator */
11021103 $file_url_generator = \Drupal::service('file_url_generator');
You can’t perform that action at this time.
0 commit comments