function LibraryDiscoveryInterface::getLibraryByName
Same name in other branches
- 9 core/lib/Drupal/Core/Asset/LibraryDiscoveryInterface.php \Drupal\Core\Asset\LibraryDiscoveryInterface::getLibraryByName()
- 8.9.x core/lib/Drupal/Core/Asset/LibraryDiscoveryInterface.php \Drupal\Core\Asset\LibraryDiscoveryInterface::getLibraryByName()
- 11.x core/lib/Drupal/Core/Asset/LibraryDiscoveryInterface.php \Drupal\Core\Asset\LibraryDiscoveryInterface::getLibraryByName()
Gets a single library defined by an extension by name.
Parameters
string $extension: The name of the extension that registered a library.
string $name: The name of a registered library to retrieve.
Return value
array|false The definition of the requested library, if $name was passed and it exists, otherwise FALSE.
File
-
core/
lib/ Drupal/ Core/ Asset/ LibraryDiscoveryInterface.php, line 46
Class
- LibraryDiscoveryInterface
- Discovers information for asset (CSS/JavaScript) libraries.
Namespace
Drupal\Core\AssetCode
public function getLibraryByName($extension, $name);
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.