I have an array contains static data related to an entity Product:
public static $category = array(
1 => 'animal.png',
2 => 'blague.png',
3 => 'devinette.png',
4 => 'enfant.png',
5 => 'h-f.png',
6 => 'nationalite.png',
7 => 'politique.png',
8 => 'sport.png',
9 => 'name',
10 => 'travail.png',
11 => 'vulgaire.png',
12 => 'autre.png',
);
Where i should declare the array ?
And how i can accede to data from the Twig view ?
Thanks
Productentity passed to the Twig template? (in other words, is it passed as an argument with the$this->render(...)function?)