function NumberTest::providerToCss
Data provider for ::testToCss().
Return value
\Generator The test cases.
File
-
core/
tests/ Drupal/ Tests/ Core/ Theme/ DesignToken/ Plugin/ NumberTest.php, line 73
Class
- NumberTest
- Tests number value plugin.
Namespace
Drupal\Tests\Core\Theme\DesignToken\PluginCode
public static function providerToCss() : iterable {
yield 'integer' => [
50,
'50',
];
yield 'float' => [
4.2,
'4.2',
];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.