Reference

Guide

I18n::form()

Returns singular or plural depending on the given number

I18n::form(int $count, bool $none = false): string

Parameters

Name Type Default Description
$count int
$none bool false

If true, 'none' will be returned if the count is 0

Return type

string

Source code

kirby/src/Toolkit/I18n.php#L73