function FontFamily::toCss
Same name and namespace in other branches
- 11.x core/lib/Drupal/Core/Theme/Plugin/DesignTokenValue/FontFamily.php \Drupal\Core\Theme\Plugin\DesignTokenValue\FontFamily::toCss()
Exports as CSS value.
Return value
string The CSS variable.
Overrides DesignTokenValueInterface::toCss
File
-
core/
lib/ Drupal/ Core/ Theme/ Plugin/ DesignTokenValue/ FontFamily.php, line 61
Class
- FontFamily
- Font family design token value.
Namespace
Drupal\Core\Theme\Plugin\DesignTokenValueCode
public function toCss() : string {
return implode(', ', array_map(Html::escape(...), $this->value));
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.