You are here

public function AssetInjectorBase::libraryNameSuffix in Asset Injector 8.2

Same name and namespace in other branches
  1. 8 src/Entity/AssetInjectorBase.php \Drupal\asset_injector\Entity\AssetInjectorBase::libraryNameSuffix()

Get the library name suffix to append to module name.

Return value

bool|string Library name suffix for use in page attachments.

Overrides AssetInjectorInterface::libraryNameSuffix

See also

asset_injector_page_attachments()

asset_injector_library_info_build()

File

src/Entity/AssetInjectorBase.php, line 78

Class

AssetInjectorBase
Class AssetInjectorBase: Base asset injector class.

Namespace

Drupal\asset_injector\Entity

Code

public function libraryNameSuffix() {
  $extension = $this
    ->extension();
  return "{$extension}/{$this->id}";
}