Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. LibraryDiscovery.php

function LibraryDiscovery::__construct

Constructs a new LibraryDiscovery instance.

Parameters

\Drupal\Core\Cache\CacheCollectorInterface $library_discovery_collector: The library discovery cache collector.

File

core/lib/Drupal/Core/Asset/LibraryDiscovery.php, line 29

Class

LibraryDiscovery
Discovers available asset libraries in Drupal.

Namespace

Drupal\Core\Asset

Code

public function __construct(CacheCollectorInterface $library_discovery_collector) {
    trigger_error(__CLASS__ . 'is deprecated in drupal:11.1.0 and is removed from drupal:12.0.0. Use LibraryDiscoveryCollector instead. See https://www.drupal.org/node/3462970', E_USER_DEPRECATED);
    $this->collector = $library_discovery_collector;
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal