You are here

protected function MultipleAssetLibraryType::getAttachableLibraryId in Libraries API 8.3

Parameters

\Drupal\libraries\ExternalLibrary\LibraryInterface $external_library:

string $component_name:

Return value

string

1 call to MultipleAssetLibraryType::getAttachableLibraryId()
MultipleAssetLibraryType::getAttachableAssetLibraries in src/Plugin/libraries/Type/MultipleAssetLibraryType.php
Reacts to the instantiation of a library.

File

src/Plugin/libraries/Type/MultipleAssetLibraryType.php, line 44

Class

MultipleAssetLibraryType
Plugin annotation @LibraryType("asset_multiple");

Namespace

Drupal\libraries\Plugin\libraries\Type

Code

protected function getAttachableLibraryId(LibraryInterface $external_library, $component_name) {
  return $external_library
    ->getId() . MultipleAssetLibraryInterface::SEPARATOR . $component_name;
}