You are here

public function WebformLibrariesManager::getLibrary in Webform 6.x

Same name and namespace in other branches
  1. 8.5 src/WebformLibrariesManager.php \Drupal\webform\WebformLibrariesManager::getLibrary()

Get library information.

Parameters

string $name: The name of the library.

Return value

array An associative array containing an library.

Overrides WebformLibrariesManagerInterface::getLibrary

File

src/WebformLibrariesManager.php, line 253

Class

WebformLibrariesManager
Webform libraries manager.

Namespace

Drupal\webform

Code

public function getLibrary($name) {
  $libraries = $this
    ->getLibraries();
  return $libraries[$name];
}