class LayoutPluginExtension extends Twig_Extension

Class LayoutPluginExtension is injected as app.layout_extension service. LayoutPluginExtension handles the logic and provides necessary data for managed entity in twig.

Constants

INDEX_PAGE_NAME

Index page name

Properties

protected LayoutManager $layoutManager

Methods

__construct(LayoutManager $layoutManager)

LayoutPluginExtension constructor.

getFunctions()

{@inheritdoc}

array
getPluginNamesForLayout(string $layoutName = null)

Find all plugin names for layout

string
getName()

Returns the name of the extension.

Details

at line 40
__construct(LayoutManager $layoutManager)

LayoutPluginExtension constructor.

Parameters

LayoutManager $layoutManager

at line 49
getFunctions()

{@inheritdoc}

at line 64
array getPluginNamesForLayout(string $layoutName = null)

Find all plugin names for layout

Parameters

string $layoutName

Return Value

array

at line 79
string getName()

Returns the name of the extension.

Return Value

string The extension name