You are here

public function Font::getSupportedKeys 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::getSupportedKeys()

Returns a list of metadata keys supported by the plugin.

Parameters

mixed $options: (optional) Allows specifying additional options to control the list of metadata keys returned.

Return value

array A simple array of metadata keys supported.

Overrides FileMetadataPluginInterface::getSupportedKeys

3 calls to Font::getSupportedKeys()
Font::doGetMetadata in file_mdm_font/src/Plugin/FileMetadata/Font.php
Gets a metadata element.
Font::doGetMetadataFromFile in file_mdm_font/src/Plugin/FileMetadata/Font.php
Gets file metadata from the file at URI/local path.
Font::validateKey in file_mdm_font/src/Plugin/FileMetadata/Font.php
Validates a file metadata key.

File

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

Class

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

Namespace

Drupal\file_mdm_font\Plugin\FileMetadata

Code

public function getSupportedKeys($options = NULL) {
  return array_merge([
    'FontType',
    'FontWeight',
  ], array_values(name::$nameIdCodes));
}