public function FileUsageInterface::listUsage

Determines where a file is used.

Parameters

Drupal\file\File $file: A file entity.

Return value

array A nested array with usage data. The first level is keyed by module name, the second by object type and the third by the object id. The value of the third level contains the usage count.

1 method overrides FileUsageInterface::listUsage()

File

drupal/core/modules/file/lib/Drupal/file/FileUsage/FileUsageInterface.php, line 74
Definition of Drupal\file\FileUsage\FileUsageInterface.

Class

FileUsageInterface
File usage backend interface.

Namespace

Drupal\file\FileUsage

Code

public function listUsage(File $file);