class CssImportFilter extends BaseCssFilter implements DependencyExtractorInterface

Inlines imported stylesheets.

Properties

private $importFilter

Methods

string
filterReferences($content, $callback, int $limit = -1, int $count = 0)

No description

string
filterUrls($content, $callback, int $limit = -1, int $count = 0)

No description

string
filterImports($content, $callback, int $limit = -1, int $count = 0, bool $includeUrl = true)

No description

string
filterIEFilters($content, $callback, int $limit = -1, int $count = 0)

No description

__construct(FilterInterface $importFilter = null)

Constructor.

filterLoad(AssetInterface $asset)

Filters an asset after it has been loaded.

filterDump(AssetInterface $asset)

Filters an asset just before it's dumped.

getChildren(AssetFactory $factory, string $content, string $loadPath = null)

Returns child assets.

Details

in BaseCssFilter at line 31
protected string filterReferences($content, $callback, int $limit = -1, int $count = 0)

No description

Parameters

$content
$callback
int $limit
int $count

Return Value

string

See also

CssUtils::filterReferences

in BaseCssFilter at line 44
protected string filterUrls($content, $callback, int $limit = -1, int $count = 0)

No description

Parameters

$content
$callback
int $limit
int $count

Return Value

string

See also

CssUtils::filterUrls

in BaseCssFilter at line 58
protected string filterImports($content, $callback, int $limit = -1, int $count = 0, bool $includeUrl = true)

No description

Parameters

$content
$callback
int $limit
int $count
bool $includeUrl

Return Value

string

See also

CssUtils::filterImports

in BaseCssFilter at line 71
protected string filterIEFilters($content, $callback, int $limit = -1, int $count = 0)

No description

Parameters

$content
$callback
int $limit
int $count

Return Value

string

See also

CssUtils::filterIEFilters

at line 33
__construct(FilterInterface $importFilter = null)

Constructor.

Parameters

FilterInterface $importFilter

Filter for each imported asset

at line 38
filterLoad(AssetInterface $asset)

Filters an asset after it has been loaded.

Parameters

AssetInterface $asset

An asset

at line 105
filterDump(AssetInterface $asset)

Filters an asset just before it's dumped.

Parameters

AssetInterface $asset

An asset

at line 109
AssetInterface[] getChildren(AssetFactory $factory, string $content, string $loadPath = null)

Returns child assets.

Parameters

AssetFactory $factory

The asset factory

string $content

The asset content

string $loadPath

An optional load path

Return Value

AssetInterface[]

Child assets