input|repeat( times )
Name | Type | Description | Required |
---|---|---|---|
times | integer | The number of times the array should be repeated. | Yes. |
This operator returns a repeated version of the input array. The "times" parameter must be used to define the number of times the array should be repeated.
{array( 1, 2, 3, 4 )|repeat( 3 )}
The following array will be returned: ( 1, 2, 3, 4, 1, 2, 3, 4, 1, 2, 3, 4 ).
Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2013 eZ Systems AS (except where otherwise noted). All rights reserved.