Class: \Conifer\Twig\TextHelper

Twig Wrapper for helpful linguistic filters, such as pluralize

Visibility Function
public get_filters() : array an associative array of callback functions, keyed by name
Get the Twig functions to register
public get_functions() : array
Does not supply any additional Twig functions.
public oxford_comma(array $items)</strong> : string
Returns a human-readable list of things. Uses the Oxford comma convention for listing three or more things.
public pluralize(string $noun, int $n)</strong> : string the noun, pluralized or not according to $n
Pluralize the given noun, if $n is anything other than 1

This class implements \Conifer\Twig\HelperInterface

results matching ""

    No results matching ""