You are here

abstract public function AssetInjectorBase::extension in Asset Injector 8.2

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

Get file extension.

Return value

string File extension, like 'css' or 'js'.

Overrides AssetInjectorInterface::extension

1 call to AssetInjectorBase::extension()
AssetInjectorBase::libraryNameSuffix in src/Entity/AssetInjectorBase.php
Get the library name suffix to append to module name.
2 methods override AssetInjectorBase::extension()
AssetInjectorCss::extension in src/Entity/AssetInjectorCss.php
Gets the file extension of the asset.
AssetInjectorJs::extension in src/Entity/AssetInjectorJs.php
Gets the file extension of the asset.

File

src/Entity/AssetInjectorBase.php, line 91

Class

AssetInjectorBase
Class AssetInjectorBase: Base asset injector class.

Namespace

Drupal\asset_injector\Entity

Code

public abstract function extension();