function Typography::toDtcg
Same name and namespace in other branches
- 11.x core/lib/Drupal/Core/Theme/Plugin/DesignTokenValue/Typography.php \Drupal\Core\Theme\Plugin\DesignTokenValue\Typography::toDtcg()
Exports as DTCG.
Return value
mixed DTCG data of the value key.
Overrides DesignTokenValueInterface::toDtcg
File
-
core/
lib/ Drupal/ Core/ Theme/ Plugin/ DesignTokenValue/ Typography.php, line 106
Class
- Typography
- Typography design token value.
Namespace
Drupal\Core\Theme\Plugin\DesignTokenValueCode
public function toDtcg() : mixed {
$data = [];
foreach ($this->properties as $property => $type) {
$data[$property] = $this->{$property}
->toDtcg();
}
return $data;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.