function public function CdnAssets::getLibrary

8.x-3.x CdnAssets.php public CdnAssets::getLibrary()

Retrieves the library associated with these assets.

Note: if the library isn't yet set, it will attempt to retrieve the library from the first available asset.

Return value

\Drupal\Component\Render\MarkupInterface The library.

Class

CdnAssets
Class CdnAssets.

Namespace

Drupal\bootstrap\Plugin\Provider

Source src/Plugin/Provider/CdnAssets.php (line 152)

public function getLibrary() {
  if (!isset($this->library)) {
    $asset = reset($this->assets);
    $this->library = $asset ? $asset->getLibrary() : NULL;
  }
  return $this->library;
}