\Ceo\View\FiltersPush

Push provides the 'push' twig filter.

Pushes item onto an array or collection.

{% set array =  array|push(item) %}

Summary

Methods
Properties
Constants
__construct()
getFilterOptions()
getDI()
getFilterName()
handle()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

__construct()

__construct() 

getFilterOptions()

getFilterOptions() 

getDI()

getDI() : object

Return default dependency injector

Returns

object —

Phalcon\Di

getFilterName()

getFilterName() : string

Return the filter name

Returns

string

handle()

handle(  $arr, mixed  $arg) : array

Handle filter response

Parameters

$arr
mixed $arg

Returns

array