X-Git-Url: http://aleph1.co.uk/gitweb/?a=blobdiff_plain;ds=inline;f=web%2Fmodules%2Fcontrib%2Ffontyourface%2Fsrc%2FEntity%2FFontDisplay.php;fp=web%2Fmodules%2Fcontrib%2Ffontyourface%2Fsrc%2FEntity%2FFontDisplay.php;h=9cde85f7f148b8018a4f297eeeaa92c66826911b;hb=a2bd1bf0c2c1f1a17d188f4dc0726a45494cefae;hp=0000000000000000000000000000000000000000;hpb=57c063afa3f66b07c4bbddc2d6129a96d90f0aad;p=yaffs-website diff --git a/web/modules/contrib/fontyourface/src/Entity/FontDisplay.php b/web/modules/contrib/fontyourface/src/Entity/FontDisplay.php new file mode 100644 index 000000000..9cde85f7f --- /dev/null +++ b/web/modules/contrib/fontyourface/src/Entity/FontDisplay.php @@ -0,0 +1,178 @@ +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]); + } + +}