Last ViewHelper <f:last>
Note
This reference is part of the documentation of Fluid Standalone. If you are working with Fluid in TYPO3 CMS, please refer to TYPO3's ViewHelper reference instead.
The LastViewHelper returns the last item of an array.
Example
<f:last value="{0: 'first', 1: 'second'}" />
Copied!
second
Copied!
Go to the source code of this ViewHelper: LastViewHelper.php (GitHub).
Arguments
The following arguments are available for the last ViewHelper:
value
-
- Type
- array