You are here

protected static function ManagedFile::fileUsage in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 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 407
Contains \Drupal\file\Element\ManagedFile.

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');
}