You are here

public function Basic::getDescription in Image Effects 8.2

Same name and namespace in other branches
  1. 8.3 src/Plugin/image_effects/FontSelector/Basic.php \Drupal\image_effects\Plugin\image_effects\FontSelector\Basic::getDescription()
  2. 8 src/Plugin/image_effects/FontSelector/Basic.php \Drupal\image_effects\Plugin\image_effects\FontSelector\Basic::getDescription()

Get the description of a font file.

Parameters

string $uri: The URI of the font file.

Return value

string The description of the font.

Overrides ImageEffectsFontSelectorPluginInterface::getDescription

1 call to Basic::getDescription()
Dropdown::getList in src/Plugin/image_effects/FontSelector/Dropdown.php
Return an array of fonts.

File

src/Plugin/image_effects/FontSelector/Basic.php, line 96

Class

Basic
Basic font selector plugin.

Namespace

Drupal\image_effects\Plugin\image_effects\FontSelector

Code

public function getDescription($uri) {
  return $this->fileMetadataManager
    ->uri($uri)
    ->getMetadata('font', 'FullName');
}