LibraryDiscoveryCollectorTest::$libraryData

Same name in other branches
  1. 8.9.x core/tests/Drupal/Tests/Core/Asset/LibraryDiscoveryCollectorTest.php \Drupal\Tests\Core\Asset\LibraryDiscoveryCollectorTest::libraryData
  2. 10 core/tests/Drupal/Tests/Core/Asset/LibraryDiscoveryCollectorTest.php \Drupal\Tests\Core\Asset\LibraryDiscoveryCollectorTest::libraryData
  3. 11.x core/tests/Drupal/Tests/Core/Asset/LibraryDiscoveryCollectorTest.php \Drupal\Tests\Core\Asset\LibraryDiscoveryCollectorTest::libraryData

Test library data.

Type: array

File

core/tests/Drupal/Tests/Core/Asset/LibraryDiscoveryCollectorTest.php, line 56

Class

LibraryDiscoveryCollectorTest
@coversDefaultClass \Drupal\Core\Asset\LibraryDiscoveryCollector @group Asset

Namespace

Drupal\Tests\Core\Asset

Code

protected $libraryData = [
    'test_1' => [
        'js' => [],
        'css' => [],
    ],
    'test_2' => [
        'js' => [],
        'css' => [],
    ],
    'test_3' => [
        'js' => [],
        'css' => [
            'theme' => [
                'foo.css' => [],
            ],
        ],
    ],
    'test_4' => [
        'js' => [],
        'css' => [
            'theme' => [
                'bar.css' => [],
            ],
        ],
        'deprecated' => 'The "%library_id%" asset library is deprecated in drupal:X.0.0 and is removed from drupal:Y.0.0. Use the test_3 library instead. See https://www.example.com',
    ],
];

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