You are here

public function FileMetadataPluginInterface::setMetadata in File metadata manager 8.2

Same name and namespace in other branches
  1. 8 src/Plugin/FileMetadataPluginInterface.php \Drupal\file_mdm\Plugin\FileMetadataPluginInterface::setMetadata()

Sets a metadata element.

Parameters

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 FileMetadataPluginInterface::setMetadata()
FileMetadataPluginBase::setMetadata in src/Plugin/FileMetadata/FileMetadataPluginBase.php
Sets a metadata element.

File

src/Plugin/FileMetadataPluginInterface.php, line 159

Class

FileMetadataPluginInterface
Provides an interface defining a FileMetadata plugin.

Namespace

Drupal\file_mdm\Plugin

Code

public function setMetadata($key, $value);