You are here

public function FileMetadata::__construct in File metadata manager 8

Same name and namespace in other branches
  1. 8.2 src/FileMetadata.php \Drupal\file_mdm\FileMetadata::__construct()

Constructs a FileMetadata object.

Parameters

\Drupal\file_mdm\Plugin\FileMetadataPluginManager $plugin_manager: The file metadata plugin manager.

\Psr\Log\LoggerInterface $logger: The logger service.

\Drupal\Core\File\FileSystemInterface $file_system: The file system service.

string $uri: The URI of the file.

string $hash: The hash used to reference the URI by file_mdm.

File

src/FileMetadata.php, line 82

Class

FileMetadata
A file metadata object.

Namespace

Drupal\file_mdm

Code

public function __construct(FileMetadataPluginManager $plugin_manager, LoggerInterface $logger, FileSystemInterface $file_system, $uri, $hash) {
  $this->pluginManager = $plugin_manager;
  $this->logger = $logger;
  $this->fileSystem = $file_system;
  $this->uri = $uri;
  $this->hash = $hash;
}