function Typography::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.