W3cubDocs

/Drupal 8

public function LibraryDiscoveryInterface::getLibrariesByExtension

public LibraryDiscoveryInterface::getLibrariesByExtension($extension)

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()

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);

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Asset!LibraryDiscoveryInterface.php/function/LibraryDiscoveryInterface::getLibrariesByExtension/8.1.x