Skip to content

Kirby 4.1.2

Date::stepConfig()

Normalizes the step configuration array for rounding

Date::stepConfig(array|string|int|null $input = null, ?array $default = array (
  'size' => 1,
  'unit' => 'day',
)): array

Parameters

Name Type Default Description
$input array|string|int|null null Full array with size and/or unit keys, unit
string, size int or null for the default
$default array|null array ( 'size' => 1, 'unit' => 'day', ) Default values to use if one or both values are not provided

Return type

array

Parent class

Kirby\Toolkit\Date