You are here

public function FileMetadataManager::count in File metadata manager 8

Same name and namespace in other branches
  1. 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_mdm

Code

public function count() {
  return count($this->files);
}