function ManagedFile::fileUsage
Same name in other branches
- 8.9.x core/modules/file/src/Element/ManagedFile.php \Drupal\file\Element\ManagedFile::fileUsage()
- 10 core/modules/file/src/Element/ManagedFile.php \Drupal\file\Element\ManagedFile::fileUsage()
- 11.x core/modules/file/src/Element/ManagedFile.php \Drupal\file\Element\ManagedFile::fileUsage()
Wraps the file usage service.
Return value
\Drupal\file\FileUsage\FileUsageInterface
File
-
core/
modules/ file/ src/ Element/ ManagedFile.php, line 466
Class
- ManagedFile
- Provides an AJAX/progress aware widget for uploading and saving a file.
Namespace
Drupal\file\ElementCode
protected static function fileUsage() {
return \Drupal::service('file.usage');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.