You are here

public function SettingsForm::getLongTimes in Advanced CSS/JS Aggregation 8.4

Getter for long times.

Return value

array Return array with long times.

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

File

src/Form/SettingsForm.php, line 94

Class

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'),
  ];
}