You are here

public function FileMetadataInterface::getMetadata in File metadata manager 8.2

Same name and namespace in other branches
  1. 8 src/FileMetadataInterface.php \Drupal\file_mdm\FileMetadataInterface::getMetadata()

Gets a metadata element.

Parameters

string $metadata_id: The id of the FileMetadata plugin.

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 FileMetadataInterface::getMetadata()
FileMetadata::getMetadata in src/FileMetadata.php
Gets a metadata element.

File

src/FileMetadataInterface.php, line 117

Class

FileMetadataInterface
Provides an interface for file metadata objects.

Namespace

Drupal\file_mdm

Code

public function getMetadata($metadata_id, $key = NULL);