function NumberTest::providerToDtcg
Data provider for ::testToDtcg().
Return value
\Generator The test cases.
File
-
core/
tests/ Drupal/ Tests/ Core/ Theme/ DesignToken/ Plugin/ NumberTest.php, line 43
Class
- NumberTest
- Tests number value plugin.
Namespace
Drupal\Tests\Core\Theme\DesignToken\PluginCode
public static function providerToDtcg() : 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.