protected DatabaseBackend::doInsert($name, $window, $identifier)
Inserts an event into the flood table
string $name: The name of an event.
int $window: Number of seconds before this event expires.
string $identifier: Unique identifier of the current user.
\Drupal\Core\Flood\DatabaseBackend::register
protected function doInsert($name, $window, $identifier) { $this->connection->insert(static::TABLE_NAME) ->fields(array( 'event' => $name, 'identifier' => $identifier, 'timestamp' => REQUEST_TIME, 'expiration' => REQUEST_TIME + $window, )) ->execute(); }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Flood!DatabaseBackend.php/function/DatabaseBackend::doInsert/8.1.x