Filters
Interfaces, Classes and Traits
- Asset
- Asset replicates Gryphon's original Asset filter, providing
asset urls depending on application location.
- BaseFilter
- All custom Twig filters inherit from the base filter
which ensures they are properly enabled
- Clip
- Clip provides the 'clip' twig filter.
- Coerce
- Typeless languages are kind of a pain. This filter
allows you to coerce a twig variable into a fixed
primitive type.
- Date
- Date overrides the Twig 'date' filter. As all dates are stored and handled
in UTC, this converts them to the local timezone before display.
- Extract
- Extract is a dropin replacement for Gryphon's extract filter, using
the new paragraph extraction functionality.
- Int2Noun
- Provides Gryphon compatible int2noun filter.
- JsonDecode
- Twig doesn't provide a JSON Decode method, which seems odd.
- LocalDate
- LocalDate provides the 'localDate' twig filter.
- Push
- Push provides the 'push' twig filter.
- QualifiedUrl
- Provides Gryphon compatible qualifiedUrl filter.
- StripTags
- StripTags overrides Twig's striptags filter. We override because the striptags filter
isn't HTML safe, and while we're stripping tags, we're not stripping non-escaped
characters, like .
- TimeSince
- TimeSince provides the 'timeSince' twig filter.
- Transform
- Creates an easier to use filter for imgix calls.
- Url
- Url replicates Gryphon's original URL filter, providing
absolute urls regardless of leading slash.
- BaseFilter
- All custom Twig filters inherit from the base filter
which ensures they are properly enabled
- Clip
- Clip provides the 'clip' twig filter.
- Date
- Date overrides the Twig 'date' filter. As all dates are stored and handled
in UTC, this converts them to the local timezone before display.
- Extract
- Extract is a dropin replacement for Gryphon's extract filter, using
the new paragraph extraction functionality.
- Int2Noun
- Provides Gryphon compatible int2noun filter.
- JsonDecode
- Twig doesn't provide a JSON Decode method, which seems odd.
- Push
- Push provides the 'push' twig filter.
- StripTags
- StripTags overrides Twig's striptags filter. We override because the striptags filter
isn't HTML safe, and while we're stripping tags, we're not stripping non-escaped
characters, like .
- TimeSince
- TimeSince provides the 'timeSince' twig filter.