You are here

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

Getter for short times.

Return value

array Return array with short times.

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

File

src/Form/SettingsForm.php, line 72

Class

SettingsForm
Configure advagg settings for this site.

Namespace

Drupal\advagg\Form

Code

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