You are here

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

Sets the Font theme for usage.

Parameters

string $theme: Site theme name.

Return value

\Drupal\fontyourface\FontDisplayInterface The called Font Style entity.

Overrides FontDisplayInterface::setTheme

File

src/Entity/FontDisplay.php, line 176

Class

FontDisplay
Defines the Font display entity.

Namespace

Drupal\fontyourface\Entity

Code

public function setTheme($theme) {
  $this
    ->set('theme', $theme);
  return $this;
}