Commit f5cc5ac7 authored by webchick's avatar webchick

Issue #2011084 by jiff | DmitryDrozdik: Replace drupal_container() with...

Issue #2011084 by jiff | DmitryDrozdik: Replace drupal_container() with Drupal::service() in the file module.
parent fada89f3
......@@ -135,7 +135,7 @@ function file_load($fid, $reset = FALSE) {
* @return Drupal\file\FileUsage\FileUsageInterface.
*/
function file_usage() {
return drupal_container()->get('file.usage');
return Drupal::service('file.usage');
}
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment