\Ceo\View\FiltersClip

Clip provides the 'clip' twig filter.

Attempts to trim a string to length

{{ article.abstract|clip(100) }}

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(string  $str, integer  $len = 100) : string

Handle filter response

Parameters

string $str
integer $len

Returns

string