function DesignTokenValueInterface::toCss
Same name and namespace in other branches
- 11.x core/lib/Drupal/Core/Theme/DesignToken/DesignTokenValueInterface.php \Drupal\Core\Theme\DesignToken\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 - FontFamily::toCss in core/
lib/ Drupal/ Core/ Theme/ Plugin/ DesignTokenValue/ FontFamily.php - FontWeight::toCss in core/
lib/ Drupal/ Core/ Theme/ Plugin/ DesignTokenValue/ FontWeight.php - Number::toCss in core/
lib/ Drupal/ Core/ Theme/ Plugin/ DesignTokenValue/ Number.php - Typography::toCss in core/
lib/ Drupal/ Core/ Theme/ Plugin/ DesignTokenValue/ Typography.php
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.