Skip to content

Latest commit

 

History

History
30 lines (22 loc) · 842 Bytes

UniqueViewHelper.md

File metadata and controls

30 lines (22 loc) · 842 Bytes

Location / UniqueViewHelper

Returns an array of unique event locations for an event by traversing all performances or null. Can be used to display the event locations for an event by iterating over the result.

note: This view helper replaces the render type uniqueLocationList of Event/PerformancesViewHelper

Examples

Unique event locations of an event

<ts:location.unique event="{event}" />

Output

array (depending on the number of locations in {event.performances})

Inline usage

{ts:location.unique(event: event)}

Arguments

Argument Type Description
event instance of DWenzel\T3events\Domain\Model\Event required