public LibraryDiscovery::getLibraryByName($extension, $name)
Gets a single library defined by an extension by name.
string $extension: The name of the extension that registered a library.
string $name: The name of a registered library to retrieve.
array|FALSE The definition of the requested library, if $name was passed and it exists, otherwise FALSE.
Overrides LibraryDiscoveryInterface::getLibraryByName
public function getLibraryByName($extension, $name) { $extension = $this->getLibrariesByExtension($extension); return isset($extension[$name]) ? $extension[$name] : FALSE; }
© 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!LibraryDiscovery.php/function/LibraryDiscovery::getLibraryByName/8.1.x