protected static function ManagedFile::fileUsage in Drupal 9
Same name and namespace in other branches
- 8 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 467
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');
}