isQuiz() || !Slide::supportsTimer($slide->type)) { return; } $limits = []; foreach (Slide::TIME_LIMITS as $seconds) { $limits[$seconds] = match (true) { $seconds === 0 => __('Kein Countdown'), $seconds < 60 => __('{0} Sekunden', $seconds), $seconds % 60 === 0 => __n('{0} Minute', '{0} Minuten', intdiv($seconds, 60), intdiv($seconds, 60)), default => __('{0} Minuten', number_format($seconds / 60, 1, ',', '')), }; } ?> Form->control('settings.time_limit', [ 'type' => 'select', 'options' => $limits, 'label' => __('Countdown'), 'value' => $slide->getSettings()['time_limit'], 'aria-describedby' => 'time-limit-hint', ]) ?>