protected static function ManagedFile::fileUsage in Drupal 10
Same name and namespace in other branches
- 8 core/modules/file/src/Element/ManagedFile.php \Drupal\file\Element\ManagedFile::fileUsage()
- 9 core/modules/file/src/Element/ManagedFile.php \Drupal\file\Element\ManagedFile::fileUsage()
Wraps the file usage service.
Return value
\Drupal\file\FileUsage\FileUsageInterface
1 call to ManagedFile::fileUsage()
- ManagedFile::validateManagedFile in core/
modules/ file/ src/ Element/ ManagedFile.php - Render API callback: Validates the managed_file element.
File
- core/
modules/ file/ src/ Element/ ManagedFile.php, line 465
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');
}