function AssetResolverTest::providerAttachedFontAssets

Same name and namespace in other branches
  1. 11.x core/tests/Drupal/Tests/Core/Asset/AssetResolverTest.php \Drupal\Tests\Core\Asset\AssetResolverTest::providerAttachedFontAssets()

File

core/tests/Drupal/Tests/Core/Asset/AssetResolverTest.php, line 281

Class

AssetResolverTest
Tests Drupal\Core\Asset\AssetResolver.

Namespace

Drupal\Tests\Core\Asset

Code

public static function providerAttachedFontAssets() : array {
  return [
    [
      [
        'piggy/css',
      ],
      [
        [
          'data' => 'fonts/font.woff2',
          'preload' => TRUE,
        ],
      ],
    ],
    [
      [
        'llama/css',
      ],
      [],
    ],
  ];
}

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