function Typography::defaultConfiguration
Same name and namespace in other branches
- 11.x core/lib/Drupal/Core/Theme/Plugin/DesignTokenValue/Typography.php \Drupal\Core\Theme\Plugin\DesignTokenValue\Typography::defaultConfiguration()
Gets default configuration for this plugin.
Return value
array An associative array containing the default configuration.
Overrides ConfigurableTrait::defaultConfiguration
File
-
core/
lib/ Drupal/ Core/ Theme/ Plugin/ DesignTokenValue/ Typography.php, line 73
Class
- Typography
- Typography design token value.
Namespace
Drupal\Core\Theme\Plugin\DesignTokenValueCode
public function defaultConfiguration() : array {
return [
'fontFamily' => [],
'fontSize' => [
'value' => 0,
'unit' => 'px',
],
'fontWeight' => '',
'letterSpacing' => [
'value' => 0,
'unit' => 'px',
],
'lineHeight' => 0,
] + parent::defaultConfiguration();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.