ManagedFile::fileUsage

protected static ManagedFile::fileUsage()

Wraps the file usage service.

Return value

\Drupal\file\FileUsage\FileUsageInterface

File

core/modules/file/src/Element/ManagedFile.php, line 440

Class

ManagedFile
Provides an AJAX/progress aware widget for uploading and saving a file.

Namespace

Drupal\file\Element

Code

protected static function fileUsage() {
  return \Drupal::service('file.usage');
}
doc_Drupal
2016-10-29 09:25:26
Comments
Leave a Comment

Please login to continue.