You are here

public function Basic::getDescription in Image Effects 8

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.2 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

File

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

Class

Basic
Basic font selector plugin.

Namespace

Drupal\image_effects\Plugin\image_effects\FontSelector

Code

public function getDescription($uri) {
  return $this
    ->getData($uri)['name'];
}