LibraryDiscoveryTest::$libraryData
Same name and namespace in other branches
- 8.9.x core/tests/Drupal/Tests/Core/Asset/LibraryDiscoveryTest.php \Drupal\Tests\Core\Asset\LibraryDiscoveryTest::libraryData
- 10 core/tests/Drupal/Tests/Core/Asset/LibraryDiscoveryTest.php \Drupal\Tests\Core\Asset\LibraryDiscoveryTest::libraryData
- 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 40
Class
- LibraryDiscoveryTest
- @coversDefaultClass <a href="/api/drupal/core%21lib%21Drupal%21Core%21Asset%21LibraryDiscovery.php/class/LibraryDiscovery/9" title="Discovers available asset libraries in Drupal." class="local">\Drupal\Core\Asset\LibraryDiscovery</a> @group Asset
Namespace
Drupal\Tests\Core\AssetCode
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.