@trigger_error('file_create_url() is deprecated in drupal:9.3.0 and is removed from drupal:10.0.0. Use the appropriate method on \Drupal\Core\File\FileUrlGeneratorInterface instead. See https://www.drupal.org/node/2940031',E_USER_DEPRECATED);
@trigger_error('file_url_transform_relative() is deprecated in drupal:9.3.0 and is removed from drupal:10.0.0. Use \Drupal\Core\File\FileUrlGenerator::transformRelative() instead. See https://www.drupal.org/node/2940031',E_USER_DEPRECATED);
* Constructs a URI to Drupal's default files location given a relative path.
*
* @deprecated in drupal:9.3.0 and is removed from drupal:10.0.0 without
* replacement.
*
* @see https://www.drupal.org/node/3223091
*/
functionfile_build_uri($path){
@trigger_error('file_build_uri() is deprecated in drupal:9.3.0 and is removed from drupal:10.0.0 without replacement. See https://www.drupal.org/node/3223091',E_USER_DEPRECATED);
@trigger_error('file_munge_filename() is deprecated in drupal:9.2.0 and is removed from drupal:10.0.0. Dispatch a \Drupal\Core\File\Event\FileUploadSanitizeNameEvent event instead. See https://www.drupal.org/node/3032541',E_USER_DEPRECATED);
$original=$filename;
// Allow potentially insecure uploads for very savvy users and admin
\Drupal::messenger()->addStatus(t('For security reasons, your upload has been renamed to %filename.',['%filename'=>$filename]));
}
}
return$filename;
}
/**
* Undoes the effect of file_munge_filename().
*
* @param $filename
* String with the filename to be unmunged.
*
* @return
* An unmunged filename string.
*
* @deprecated in drupal:9.2.0 and is removed from drupal:10.0.0. Use
* str_replace() instead.
*
* @see https://www.drupal.org/node/3032541
*/
functionfile_unmunge_filename($filename){
@trigger_error('file_unmunge_filename() is deprecated in drupal:9.2.0 and is removed from drupal:10.0.0. Use str_replace() instead. See https://www.drupal.org/node/3032541',E_USER_DEPRECATED);