public function CssInjector::libraryInfo in Asset Injector 8
Gets the library array used in library_info_build.
Return value
array Library info array for this asset.
Overrides AssetInjectorBase::libraryInfo
File
- src/
Entity/ CssInjector.php, line 76
Class
- CssInjector
- Defines the Css Injector entity.
Namespace
Drupal\asset_injector\EntityCode
public function libraryInfo() {
$path = $this
->filePathRelativeToDrupalRoot();
$library_info = [
'css' => [
'theme' => [
$path => [
'weight' => 0,
'preprocess' => $this->preprocess,
'media' => $this->media,
],
],
],
];
return $library_info;
}