You are here

public static function Flood::getFloodDefaults in Acquia Search 3.x

List of values by each Solarium request type.

2 calls to Flood::getFloodDefaults()
Flood::getConfigValue in src/Helper/Flood.php
Return the integer value for the specified type and option.
Flood::isControlled in src/Helper/Flood.php
Check that the given ID is a valid string from a list of defined values.

File

src/Helper/Flood.php, line 38

Class

Flood
Class Flood.

Namespace

Drupal\acquia_search\Helper

Code

public static function getFloodDefaults() {
  return [
    'select' => [
      'window' => 10,
      'limit' => 50,
    ],
    'update' => [
      'window' => 60,
      'limit' => 600,
    ],
    'update/extract' => [
      'window' => 60,
      'limit' => 600,
    ],
    'autocomplete' => [
      'window' => 10,
      'limit' => 100,
    ],
    'test' => [
      'window' => 2,
      'limit' => 1,
    ],
  ];
}