library.discovery

Same name and namespace in other branches
  1. 9 core/core.services.yml \library.discovery
  2. 8.9.x core/core.services.yml \library.discovery
  3. 10 core/core.services.yml \library.discovery

Class

Drupal\Core\Asset\LibraryDiscoveryCollector

Tags

  • needs_destruction
10 string references to library.discovery
AttachedAssetsTest::testDynamicLibrary in core/tests/Drupal/KernelTests/Core/Asset/AttachedAssetsTest.php
Dynamically defines an asset library and alters it.
AttachedAssetsTest::testLibraryAlter in core/tests/Drupal/KernelTests/Core/Asset/AttachedAssetsTest.php
Adds a JavaScript library to the page and alters it.
AttachedAssetsTest::testLibraryNameConflicts in core/tests/Drupal/KernelTests/Core/Asset/AttachedAssetsTest.php
Tests that multiple modules can implement libraries with the same name.
DeprecatedAssetsTest::testDeprecatedLibraries in core/tests/Drupal/KernelTests/Core/Asset/DeprecatedAssetsTest.php
Confirms the status and definition contents of deprecated libraries.
JqueryUiLibraryAssetsTest::setUp in core/tests/Drupal/FunctionalTests/Libraries/JqueryUiLibraryAssetsTest.php

... See full list

File

core/core.services.yml

View source
  1. class: Drupal\Core\Asset\LibraryDiscoveryCollector
  2. arguments:
  3. - '@cache.discovery'
  4. - '@lock'
  5. - '@library.discovery.parser'
  6. - '@theme.manager'
  7. tags:
  8. - { name: needs_destruction }

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