Same name in other branches
- 6.0.x src/Form/SettingsForm.php \Drupal\advagg\Form\SettingsForm::getShortTimes()
- 8.x-4.x src/Form/SettingsForm.php \Drupal\advagg\Form\SettingsForm::getShortTimes()
Getter for short times.
Return value
array Return array with short times.
1 call to SettingsForm::getShortTimes()
- SettingsForm::buildForm dans src/
Form/ SettingsForm.php
Fichier
-
src/
Form/ SettingsForm.php, line 72
Classe
- SettingsForm
- Configure advagg settings for this site.
Namespace
Drupal\advagg\FormCode
public function getShortTimes() : array {
return [
900 => $this->t('15 minutes'),
1800 => $this->t('30 minutes'),
2700 => $this->t('45 minutes'),
3600 => $this->t('1 hour'),
7200 => $this->t('2 hours'),
14400 => $this->t('4 hours'),
21600 => $this->t('6 hours'),
43200 => $this->t('12 hours'),
64800 => $this->t('18 hours'),
86400 => $this->t('1 day'),
172800 => $this->t('2 days'),
];
}