You are here

public function FileMetadataPluginInterface::loadMetadataFromFile in File metadata manager 8

Same name and namespace in other branches
  1. 8.2 src/Plugin/FileMetadataPluginInterface.php \Drupal\file_mdm\Plugin\FileMetadataPluginInterface::loadMetadataFromFile()

Loads file metadata from the file at URI/local path.

Return value

bool TRUE if metadata was loaded successfully, FALSE otherwise.

Throws

\Drupal\file_mdm\FileMetadataException In case there were significant errors reading from file.

1 method overrides FileMetadataPluginInterface::loadMetadataFromFile()
FileMetadataPluginBase::loadMetadataFromFile in src/Plugin/FileMetadata/FileMetadataPluginBase.php
Loads file metadata from the file at URI/local path.

File

src/Plugin/FileMetadataPluginInterface.php, line 122

Class

FileMetadataPluginInterface
Provides an interface defining a FileMetadata plugin.

Namespace

Drupal\file_mdm\Plugin

Code

public function loadMetadataFromFile();