public function FileMetadataManager::count in File metadata manager 8
Same name and namespace in other branches
- 8.2 src/FileMetadataManager.php \Drupal\file_mdm\FileMetadataManager::count()
Returns the count of FileMetadata objects currently in use.
Return value
int The number of FileMetadata objects currently in use.
Overrides FileMetadataManagerInterface::count
File
- src/
FileMetadataManager.php, line 155
Class
- FileMetadataManager
- A service class to provide file metadata.
Namespace
Drupal\file_mdmCode
public function count() {
return count($this->files);
}