FileUsageInterface::listUsage

public FileUsageInterface::listUsage(FileInterface $file)

Determines where a file is used.

Parameters

\Drupal\file\FileInterface $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.

File

core/modules/file/src/FileUsage/FileUsageInterface.php, line 68

Class

FileUsageInterface
File usage backend interface.

Namespace

Drupal\file\FileUsage

Code

public function listUsage(FileInterface $file);
doc_Drupal
2016-10-29 09:14:05
Comments
Leave a Comment

Please login to continue.