You are here

protected function Font::doSetMetadata in File metadata manager 8.2

Same name and namespace in other branches
  1. 8 file_mdm_font/src/Plugin/FileMetadata/Font.php \Drupal\file_mdm_font\Plugin\FileMetadata\Font::doSetMetadata()

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.

Overrides FileMetadataPluginBase::doSetMetadata

File

file_mdm_font/src/Plugin/FileMetadata/Font.php, line 102

Class

Font
FileMetadata plugin for TTF/OTF/WOFF font information.

Namespace

Drupal\file_mdm_font\Plugin\FileMetadata

Code

protected function doSetMetadata($key, $value) {
  throw new FileMetadataException('Changing font metadata is not supported', $this
    ->getPluginId());
}