You are here

abstract public function AssetInjectorBase::extension in Asset Injector 8

Same name and namespace in other branches
  1. 8.2 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()
CssInjector::extension in src/Entity/CssInjector.php
Gets the file extension of the asset.
JsInjector::extension in src/Entity/JsInjector.php
Gets the file extension of the asset.

File

src/Entity/AssetInjectorBase.php, line 127

Class

AssetInjectorBase
Class AssetInjectorBase: Base asset injector class.

Namespace

Drupal\asset_injector\Entity

Code

public abstract function extension();