public function FileMetadataPluginInterface::setHash in File metadata manager 8
Same name and namespace in other branches
- 8.2 src/Plugin/FileMetadataPluginInterface.php \Drupal\file_mdm\Plugin\FileMetadataPluginInterface::setHash()
Sets the hash used to reference the URI by the metadata manager.
Parameters
string $hash: A hash string.
Return value
$this
Throws
\Drupal\file_mdm\FileMetadataException If no hash is specified.
1 method overrides FileMetadataPluginInterface::setHash()
- FileMetadataPluginBase::setHash in src/
Plugin/ FileMetadata/ FileMetadataPluginBase.php - Sets the hash used to reference the URI by the metadata manager.
File
- src/
Plugin/ FileMetadataPluginInterface.php, line 80
Class
- FileMetadataPluginInterface
- Provides an interface defining a FileMetadata plugin.
Namespace
Drupal\file_mdm\PluginCode
public function setHash($hash);