function DesignToken::getCssVariableName
File
-
core/
lib/ Drupal/ Core/ Theme/ Entity/ DesignToken.php, line 77
Class
- DesignToken
- Configuration entity.
Namespace
Drupal\Core\Theme\EntityCode
public function getCssVariableName() : string {
$name = $this->path;
$name = \strtr($name, [
'_' => '-',
' ' => '-',
'.' => '-',
]);
return "--{$name}";
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.