MyTeamExtension
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
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
at line 38
getFunctions()
{@inheritdoc}
at line 52
array
getAllTeamsArray()
Find id, name and slug for all teams
at line 66
string
getAllMyTeamsFromCache(string $theme)
Retrieve team for provided theme
at line 78
array
getTeamsForBlock(array $ids)
Find team that match provided ids
at line 88
string
getName()
Returns the name of the extension.