function TypographyTest::providerToCss
Data provider for ::testToCss().
Return value
\Generator The test cases.
File
-
core/
tests/ Drupal/ Tests/ Core/ Theme/ DesignToken/ Plugin/ TypographyTest.php, line 142
Class
- TypographyTest
- Tests typography value plugin.
Namespace
Drupal\Tests\Core\Theme\DesignToken\PluginCode
public static function providerToCss() : iterable {
yield 'default' => [
[
'fontFamily' => [
'Arial',
'sans-serif',
],
'fontSize' => [
'value' => 10,
'unit' => 'px',
],
'fontWeight' => 20,
'letterSpacing' => [
'value' => 30,
'unit' => 'px',
],
'lineHeight' => 5,
],
'20 10px/5 Arial, sans-serif',
];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.