class MyTeamExtension extends Twig_Extension

Class MyTeamExtension is injected as twig.extension.myteam service. MyTeamExtension handles the logic and provides necessary data for managed entity in twig.

Properties

protected MyTeamManager $manager

Methods

__construct(MyTeamManager $manager)

Constructor

getFunctions()

{@inheritdoc}

array
getAllTeamsArray()

Find id, name and slug for all teams

string
getAllMyTeamsFromCache(string $theme)

Retrieve team for provided theme

array
getTeamsForBlock(array $ids)

Find team that match provided ids

string
getName()

Returns the name of the extension.

Details

at line 30
__construct(MyTeamManager $manager)

Constructor

Parameters

MyTeamManager $manager

at line 38
getFunctions()

{@inheritdoc}

at line 52
array getAllTeamsArray()

Find id, name and slug for all teams

Return Value

array

at line 66
string getAllMyTeamsFromCache(string $theme)

Retrieve team for provided theme

Parameters

string $theme

Return Value

string

Exceptions

Error

at line 78
array getTeamsForBlock(array $ids)

Find team that match provided ids

Parameters

array $ids

Return Value

array

at line 88
string getName()

Returns the name of the extension.

Return Value

string The extension name