AlbumExtension
class AlbumExtension extends Twig_Extension
Class AlbumExtension is injected as twig.extension.album service. AlbumExtension handles the logic and provides necessary data for managed entity in twig.
Methods
getFunctions()
{@inheritdoc}
string
getAlbumsFromCache(string $theme, string $locale)
Retrieve albums from cache for provided theme and locale
mixed
getAlbumsFromDB(string $theme, string $locale)
Get albums from database for provided theme and locale
array
getAlbumsForBlock(array $ids)
Get albums for blocks by id
string
getName()
Returns the name of the extension.
Details
at line 30
__construct(AlbumsManager $manager)
Constructor
at line 38
getFunctions()
{@inheritdoc}
at line 57
string
getAlbumsFromCache(string $theme, string $locale)
Retrieve albums from cache for provided theme and locale
at line 72
mixed
getAlbumsFromDB(string $theme, string $locale)
Get albums from database for provided theme and locale
at line 83
array
getAlbumsForBlock(array $ids)
Get albums for blocks by id
at line 93
string
getName()
Returns the name of the extension.