getFontUrl()); } /** * {@inheritdoc} */ public function getFontUrl() { return $this->get('font_url'); } /** * {@inheritdoc} */ public function setFontUrl($font_url) { $this->set('font_url', $font_url); return $this; } /** * {@inheritdoc} */ public function getFallback() { return $this->get('fallback'); } /** * {@inheritdoc} */ public function setFallback($fallback) { $this->set('fallback', $fallback); return $this; } /** * {@inheritdoc} */ public function getSelectors() { return $this->get('selectors'); } /** * {@inheritdoc} */ public function setSelectors($selectors) { $this->set('selectors', $selectors); return $this; } /** * {@inheritdoc} */ public function getTheme() { return $this->get('theme'); } /** * {@inheritdoc} */ public function setTheme($theme) { $this->set('theme', $theme); return $this; } /** * {@inheritdoc} */ public static function loadByTheme($theme) { return \Drupal::entityManager()->getStorage('font_display')->loadByProperties(['theme' => $theme]); } }