You are here

public function FontDisplay::getFont in @font-your-face 8.3

Gets the Font.

Return value

Font Font from config.

Overrides FontDisplayInterface::getFont

File

src/Entity/FontDisplay.php, line 117

Class

FontDisplay
Defines the Font display entity.

Namespace

Drupal\fontyourface\Entity

Code

public function getFont() {
  return Font::loadByUrl($this
    ->getFontUrl());
}