You are here

public function FileMetadataInterface::setMetadata in File metadata manager 8

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

Sets a metadata element.

Parameters

string $metadata_id: The id of the FileMetadata plugin.

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

mixed $value: The value to change the metadata element to.

Return value

bool TRUE if metadata was changed successfully, FALSE otherwise.

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

File

src/FileMetadataInterface.php, line 145

Class

FileMetadataInterface
Provides an interface for file metadata objects.

Namespace

Drupal\file_mdm

Code

public function setMetadata($metadata_id, $key, $value);