You are here

public function FileMetadataInterface::removeMetadata in File metadata manager 8.2

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

Removes a metadata element.

Parameters

string $metadata_id: The id of the FileMetadata plugin.

mixed $key: A key to determine the metadata element to be removed.

Return value

bool TRUE if metadata was removed successfully, FALSE otherwise.

1 method overrides FileMetadataInterface::removeMetadata()
FileMetadata::removeMetadata in src/FileMetadata.php
Removes a metadata element.

File

src/FileMetadataInterface.php, line 130

Class

FileMetadataInterface
Provides an interface for file metadata objects.

Namespace

Drupal\file_mdm

Code

public function removeMetadata($metadata_id, $key);