public function Basic::getDescription in Image Effects 8.3
Same name and namespace in other branches
- 8 src/Plugin/image_effects/FontSelector/Basic.php \Drupal\image_effects\Plugin\image_effects\FontSelector\Basic::getDescription()
- 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
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\FontSelectorCode
public function getDescription($uri) {
return $this->fileMetadataManager
->uri($uri)
->getMetadata('font', 'FullName');
}