Push
class Push extends BaseFilter
Push provides the 'push' twig filter.
Pushes item onto an array or collection.
{% set array = array|push(item) %}
Methods
string
getFilterName()
Return the filter name
array
handle($arr, $arg)
Handle filter response
Details
in BaseFilter at line 13
__construct()
in BaseFilter at line 22
getFilterOptions()
in BaseFilter at line 31
object
getDI()
Return default dependency injector
at line 19
string
getFilterName()
Return the filter name
at line 30
array
handle($arr, $arg)
Handle filter response