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