SeparatorFilter
in package
implements
FilterInterface
Inserts a separator between assets to prevent merge failures e.g. missing semicolon at the end of a JS file
Tags
Interfaces, Classes and Traits
- FilterInterface
- A filter manipulates an asset at load and dump.
Table of Contents
- $separator : string
- __construct() : mixed
- Constructor.
- filterDump() : mixed
- Filters an asset just before it's dumped.
- filterLoad() : mixed
- Filters an asset after it has been loaded.
Properties
$separator
private
string
$separator
Methods
__construct()
Constructor.
public
__construct([string $separator = ';' ]) : mixed
Parameters
- $separator : string = ';'
-
Separator to use between assets
Return values
mixed —filterDump()
Filters an asset just before it's dumped.
public
filterDump(AssetInterface $asset) : mixed
Parameters
- $asset : AssetInterface
-
An asset
Return values
mixed —filterLoad()
Filters an asset after it has been loaded.
public
filterLoad(AssetInterface $asset) : mixed
Parameters
- $asset : AssetInterface
-
An asset