function FontFamilyTest::providerToDtcg

Data provider for ::testToDtcg().

Return value

\Generator The test cases.

File

core/tests/Drupal/Tests/Core/Theme/DesignToken/Plugin/FontFamilyTest.php, line 44

Class

FontFamilyTest
Tests font family value plugin.

Namespace

Drupal\Tests\Core\Theme\DesignToken\Plugin

Code

public static function providerToDtcg() : iterable {
  yield 'string' => [
    'Arial',
    [
      'Arial',
    ],
  ];
  yield 'list' => [
    [
      'Arial',
      'sans-serif',
    ],
    [
      'Arial',
      'sans-serif',
    ],
  ];
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.