You are here

protected function FloodControlSettingsForm::getOptions in Flood control 2.0.x

Same name and namespace in other branches
  1. 1.0.x src/Form/FloodControlSettingsForm.php \Drupal\flood_control\Form\FloodControlSettingsForm::getOptions()

Provides options for the select lists.

1 call to FloodControlSettingsForm::getOptions()
FloodControlSettingsForm::buildForm in src/Form/FloodControlSettingsForm.php
Form constructor.

File

src/Form/FloodControlSettingsForm.php, line 182

Class

FloodControlSettingsForm
Administration settings form.

Namespace

Drupal\flood_control\Form

Code

protected function getOptions() {
  return [
    'counter' => [
      1,
      2,
      3,
      4,
      5,
      6,
      7,
      8,
      9,
      10,
      20,
      30,
      40,
      50,
      75,
      100,
      125,
      150,
      200,
      250,
      500,
    ],
    'time' => [
      60,
      180,
      300,
      600,
      900,
      1800,
      2700,
      3600,
      10800,
      21600,
      32400,
      43200,
      86400,
    ],
  ];
}