class EventsCarousel extends AbstractExtension

Twig extension to display the carousel using events_carousel($number)

Properties

private EntityManagerInterface $em Stores EntityManagerInterface
private EventsServiceInterface $eventsService Stores EventsServiceInterface

Methods

__construct(EntityManagerInterface $em, EventsServiceInterface $eventsService)

No description

getFunctions()

No description

string
Carousel(Environment $environment, int $number)

Returns the xhtml code for the Carousel with $number of Events

Details

at line 37
__construct(EntityManagerInterface $em, EventsServiceInterface $eventsService)

Parameters

EntityManagerInterface $em
EventsServiceInterface $eventsService

at line 46
getFunctions()

Returns the xhtml code for the Carousel with $number of Events

Parameters

Environment $environment
int $number

Return Value

string