function DesignTokenValueInterface::toCss
Exports as CSS value.
Return value
string The CSS variable.
5 methods override DesignTokenValueInterface::toCss()
- Dimension::toCss in core/
lib/ Drupal/ Core/ Theme/ Plugin/ DesignTokenValue/ Dimension.php - Exports as CSS value.
- FontFamily::toCss in core/
lib/ Drupal/ Core/ Theme/ Plugin/ DesignTokenValue/ FontFamily.php - Exports as CSS value.
- FontWeight::toCss in core/
lib/ Drupal/ Core/ Theme/ Plugin/ DesignTokenValue/ FontWeight.php - Exports as CSS value.
- Number::toCss in core/
lib/ Drupal/ Core/ Theme/ Plugin/ DesignTokenValue/ Number.php - Exports as CSS value.
- Typography::toCss in core/
lib/ Drupal/ Core/ Theme/ Plugin/ DesignTokenValue/ Typography.php - Exports as CSS value.
File
-
core/
lib/ Drupal/ Core/ Theme/ DesignToken/ DesignTokenValueInterface.php, line 26
Class
- DesignTokenValueInterface
- Interface for design tokens value plugins.
Namespace
Drupal\Core\Theme\DesignTokenCode
public function toCss() : string;
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.