Skip to content
Snippets Groups Projects
Commit a0718108 authored by Alex Pott's avatar Alex Pott
Browse files

Issue #2294251 by j2r | marcingy: Remove file_usage from file module.

parent 1594e522
Branches
Tags
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -123,18 +123,6 @@ function file_load($fid, $reset = FALSE) {
return File::load($fid);
}
/**
* Returns the file usage service.
*
* @deprecated in Drupal 8.x-dev, will be removed before Drupal 8.0.
* Use \Drupal::service('file.usage').
*
* @return \Drupal\file\FileUsage\FileUsageInterface.
*/
function file_usage() {
return \Drupal::service('file.usage');
}
/**
* Copies a file to a new location and adds a file record to the database.
*
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment