function DesignTokenInterface::toCss
Same name and namespace in other branches
- 11.x core/lib/Drupal/Core/Theme/Entity/DesignTokenInterface.php \Drupal\Core\Theme\Entity\DesignTokenInterface::toCss()
Exports the given tokens into CSS variables.
Parameters
\Drupal\Core\Theme\Entity\DesignTokenInterface[] $tokens: The token entities.
Return value
string The inline CSS.
1 method overrides DesignTokenInterface::toCss()
- DesignToken::toCss in core/
lib/ Drupal/ Core/ Theme/ Entity/ DesignToken.php - Exports the given tokens into CSS variables.
File
-
core/
lib/ Drupal/ Core/ Theme/ Entity/ DesignTokenInterface.php, line 51
Class
- DesignTokenInterface
- Interface for design token config entity.
Namespace
Drupal\Core\Theme\EntityCode
public static function toCss(array $tokens) : string;
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.