class SectionInfoExtension extends Twig_Extension

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

Methods

__construct(SectionManager $manager)

Constructor

getFunctions()

{@inheritdoc}

null|Section
getSectionByPk(int $id)

Find section(from cache) that match provided id

string
getName()

Returns the name of the extension.

Details

at line 31
__construct(SectionManager $manager)

Constructor

Parameters

SectionManager $manager

at line 39
getFunctions()

{@inheritdoc}

at line 55
null|Section getSectionByPk(int $id)

Find section(from cache) that match provided id

Parameters

int $id

Return Value

null|Section

Exceptions

NonUniqueResultException

at line 65
string getName()

Returns the name of the extension.

Return Value

string The extension name