Template Filter - first
Definition and Usage
The first filter returns the first item of
an object.
For strings, the first filter returns the
first character:
Use the last filter to return the last item.
Syntax
Template filters are defined by using a pipe |
character followed by the name of the filter.
{{ value|first }}