LibraryDiscoveryTest::$libraryData

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

Test library data.

Type: array

File

core/tests/Drupal/Tests/Core/Asset/LibraryDiscoveryTest.php, line 42

Class

LibraryDiscoveryTest
@coversDefaultClass \Drupal\Core\Asset\LibraryDiscovery @group Asset

Namespace

Drupal\Tests\Core\Asset

Code

protected $libraryData = [
    'test_1' => [
        'js' => [],
        'css' => [
            'foo.css' => [],
        ],
    ],
    'test_2' => [
        'js' => [
            'bar.js' => [],
        ],
        'css' => [],
    ],
    'test_3' => [
        'js' => [
            'baz.js' => [],
        ],
        'css' => [],
        'deprecated' => 'The "%library_id%" asset library is deprecated in drupal:8.8.0 and is removed from drupal:9.0.0. Use the test_2 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.