Same name and namespace in other branches
  1. 5.0.x src/Form/SettingsForm.php \Drupal\advagg\Form\SettingsForm::getLongTimes() 1 commentaire
  2. 8.x-4.x src/Form/SettingsForm.php \Drupal\advagg\Form\SettingsForm::getLongTimes() 1 commentaire

Getter for long times.

Return value

array Return array with long times.

1 call to SettingsForm::getLongTimes()
SettingsForm::buildForm dans src/Form/SettingsForm.php

Fichier

src/Form/SettingsForm.php, line 94

Classe

SettingsForm
Configure advagg settings for this site.

Namespace

Drupal\advagg\Form

Code

public function getLongTimes() : array {
    return [
        172800 => $this->t('2 days'),
        259200 => $this->t('3 days'),
        345600 => $this->t('4 days'),
        432000 => $this->t('5 days'),
        518400 => $this->t('6 days'),
        604800 => $this->t('1 week'),
        1209600 => $this->t('2 week'),
        1814400 => $this->t('3 week'),
        2592000 => $this->t('1 month'),
        3628800 => $this->t('6 weeks'),
        4838400 => $this->t('2 months'),
    ];
}