3 namespace Drupal\file_mdm;
6 * Provides an interface for file metadata manager objects.
8 interface FileMetadataManagerInterface {
11 * Determines if the URI is currently in use by the manager.
17 * TRUE if the URI is in use, FALSE otherwise.
19 public function has($uri);
22 * Returns a FileMetadata object for the URI, creating it if necessary.
27 * @return \Drupal\file_mdm\FileMetadataInterface|null
28 * The FileMetadata object for the specified URI.
30 public function uri($uri);
33 * Deletes the all the cached metadata for the URI.
39 * TRUE if the cached metadata was removed, FALSE in case of error.
41 public function deleteCachedMetadata($uri);
44 * Releases the FileMetadata object for the URI.
50 * TRUE if the FileMetadata for the URI was removed from the manager,
53 public function release($uri);
56 * Returns the count of FileMetadata objects currently in use.
59 * The number of FileMetadata objects currently in use.
61 public function count();