// If there's no generic icon for the type the general class.
return'general';
@trigger_error(__FUNCTION__.'() is deprecated in drupal:10.3.0 and is removed from drupal:11.0.0. Use \Drupal\file\IconMimeTypes::getIconClass() instead. See https://www.drupal.org/node/3411269',E_USER_DEPRECATED);
returnIconMimeTypes::getIconClass($mime_type);
}
/**
@@ -1312,131 +1305,15 @@ function file_icon_class($mime_type) {
*
* @return string|false
* The generic icon MIME package expected for this file.
*
* @deprecated in drupal:10.3.0 and is removed from drupal:11.0.0. Use
@trigger_error(__FUNCTION__.'() is deprecated in drupal:10.3.0 and is removed from drupal:11.0.0. Use \Drupal\file\IconMimeTypes::getGenericMimeType() instead. See https://www.drupal.org/node/3411269',E_USER_DEPRECATED);
$this->expectDeprecation('file_icon_map() is deprecated in drupal:10.3.0 and is removed from drupal:11.0.0. Use \Drupal\file\IconMimeTypes::getGenericMimeType() instead. See https://www.drupal.org/node/3411269');
$this->expectDeprecation('file_icon_class() is deprecated in drupal:10.3.0 and is removed from drupal:11.0.0. Use \Drupal\file\IconMimeTypes::getIconClass() instead. See https://www.drupal.org/node/3411269');