3 namespace Drupal\fontyourface;
5 use Drupal\Core\Config\Entity\ConfigEntityInterface;
8 * Provides an interface for defining Font display entities.
10 interface FontDisplayInterface extends ConfigEntityInterface {
18 public function getFont();
26 public function getFontUrl();
31 * @param string $font_url
34 * @return \Drupal\fontyourface\FontDisplayInterface
35 * The called Font Style entity.
37 public function setFontUrl($font_url);
40 * Gets the Font fallback fonts.
45 public function getFallback();
48 * Sets the Font fallback fonts.
50 * @param string $fallback
53 * @return \Drupal\fontyourface\FontDisplayInterface
54 * The called Font Style entity.
56 public function setFallback($fallback);
59 * Gets the Font selectors.
64 public function getSelectors();
67 * Sets the Font selectors.
69 * @param string $selectors
72 * @return \Drupal\fontyourface\FontDisplayInterface
73 * The called Font Style entity.
75 public function setSelectors($selectors);
78 * Gets the site theme for display usage.
83 public function getTheme();
86 * Sets the Font theme for usage.
88 * @param string $theme
91 * @return \Drupal\fontyourface\FontDisplayInterface
92 * The called Font Style entity.
94 public function setTheme($theme);
97 * Returns FontDisplays by theme name.
99 * @param string $theme
103 * List of font style configs for theme.
105 public static function loadByTheme($theme);