Skip to content

Kirby 6.0.0

I18n::form()

Returns singular or plural depending on the given number

I18n::form(int $count, bool $none = false): 'none'|'singular'|'plural'

Parameters

Name Type Default Description
$countrequired int no default value
$none bool false If true, 'none' will be returned if the count is 0

Return types

'none'or'singular'or'plural'

Parent class

Kirby\Toolkit\I18n