TwigStyleScriptTagFilter

Namespace

Ceres\Extensions

Extends
Implements
Properties
Type Name Description

array

$styleTags

Filtered out style tags.

array

$scriptTags

Filtered out script tags.

array

$ignoreLayoutContainer

Black list of layout container to filter.

TwigFactory

$twig

The factory to render TWIG.

string

$pluginNamespace

Methods
public __construct($twig)

TwigStyleScriptTagFilter constructor.

Parameters

Type

Name

Description

TwigFactory

$twig

The factory to render TWIG.

public getName():string

Return the name of the extension.

public getFunctions():array

Return a list of functions to add.

public getFilters():array

Return a list of filters to add.

public getFilteredTags():string

Get all filtered out script and style tags.

public filterTags($content, $containerName):string

Filter content for script and style tags.

Parameters

Type

Name

Description

string

$content

The content to filter.

string

$containerName

The name of the layout container.

public getGlobals():array

Return a map of global helper objects to add.