October\Rain\Assetic\Filter\CssImportFilter
Overview
CssImportFilter converts imported stylesheets to inline.
Extends
Implements
- October\Rain\Assetic\Filter\FilterInterface
- October\Rain\Assetic\Filter\HashableInterface
- October\Rain\Assetic\Filter\DependencyExtractorInterface
Protected Properties
protected FilterInterface|null $importFilter
protected string|null $lastHash
Public Methods
public __construct()
public __construct(FilterInterface $importFilter = null): void
public filterDump()
public filterDump($asset): void
public filterLoad()
public filterLoad($asset): void
public getAllChildren()
public getAllChildren($factory, $content, $loadPath = null): void
getAllChildren loads all children recursively
public getChildren()
public getChildren($factory, $content, $loadPath = null): void
getChildren only returns one level of children
public hash()
public hash(): string
hash generated for the object
public hashAsset()
public hashAsset($asset, $localPath): void
public setHash()
public setHash($hash): void
Protected Methods
protected collectChildren()
protected collectChildren(
$factory,
$content,
$loadPath,
$parents,
&$children
): void
collectChildren visits dependencies once, retaining their first import order.
protected expandImports()
protected expandImports($asset, $parents, &$imports): string
expandImports follows each import before rewriting its URLs for the parent.
protected getImportIdentity()
protected getImportIdentity($source): string
getImportIdentity normalizes aliases without changing the import's URL base.
Show inherited protected methods
Inherited Protected Methods
- filterIEFilters() - (defined in October\Rain\Assetic\Filter\BaseCssFilter)
- filterImports() - (defined in October\Rain\Assetic\Filter\BaseCssFilter)
- filterReferences() - (defined in October\Rain\Assetic\Filter\BaseCssFilter)
- filterUrls() - (defined in October\Rain\Assetic\Filter\BaseCssFilter)