public function FileMetadataPluginInterface::getMetadata in File metadata manager 8
Same name and namespace in other branches
- 8.2 src/Plugin/FileMetadataPluginInterface.php \Drupal\file_mdm\Plugin\FileMetadataPluginInterface::getMetadata()
Gets a metadata element.
Parameters
mixed|null $key: A key to determine the metadata element to be returned. If NULL, the entire metadata will be returned.
Return value
mixed The value of the element specified by $key. If $key is NULL, the entire metadata.
1 method overrides FileMetadataPluginInterface::getMetadata()
- FileMetadataPluginBase::getMetadata in src/
Plugin/ FileMetadata/ FileMetadataPluginBase.php - Gets a metadata element.
File
- src/
Plugin/ FileMetadataPluginInterface.php, line 146
Class
- FileMetadataPluginInterface
- Provides an interface defining a FileMetadata plugin.
Namespace
Drupal\file_mdm\PluginCode
public function getMetadata($key = NULL);