function LibraryDiscoveryInterface::getLibrariesByExtension

Same name in other branches
  1. 9 core/lib/Drupal/Core/Asset/LibraryDiscoveryInterface.php \Drupal\Core\Asset\LibraryDiscoveryInterface::getLibrariesByExtension()
  2. 8.9.x core/lib/Drupal/Core/Asset/LibraryDiscoveryInterface.php \Drupal\Core\Asset\LibraryDiscoveryInterface::getLibrariesByExtension()
  3. 10 core/lib/Drupal/Core/Asset/LibraryDiscoveryInterface.php \Drupal\Core\Asset\LibraryDiscoveryInterface::getLibrariesByExtension()

Gets all libraries defined by an extension.

Parameters

string $extension: The name of the extension that registered a library.

Return value

array An associative array of libraries registered by $extension is returned (which may be empty).

See also

self::getLibraryByName()

2 methods override LibraryDiscoveryInterface::getLibrariesByExtension()
LibraryDiscovery::getLibrariesByExtension in core/lib/Drupal/Core/Asset/LibraryDiscovery.php
LibraryDiscoveryCollector::getLibrariesByExtension in core/lib/Drupal/Core/Asset/LibraryDiscoveryCollector.php

File

core/lib/Drupal/Core/Asset/LibraryDiscoveryInterface.php, line 32

Class

LibraryDiscoveryInterface
Discovers information for asset (CSS/JavaScript) libraries.

Namespace

Drupal\Core\Asset

Code

public function getLibrariesByExtension($extension);

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