You are here

public function LibraryDiscoveryInterface::getLibraryByName in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 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.

1 method overrides LibraryDiscoveryInterface::getLibraryByName()
LibraryDiscovery::getLibraryByName in core/lib/Drupal/Core/Asset/LibraryDiscovery.php
Gets a single library defined by an extension by name.

File

core/lib/Drupal/Core/Asset/LibraryDiscoveryInterface.php, line 51
Contains \Drupal\Core\Asset\LibraryDiscoveryInterface.

Class

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

Namespace

Drupal\Core\Asset

Code

public function getLibraryByName($extension, $name);