function UserFloodSubscriber::__construct
Constructs a UserFloodSubscriber.
Parameters
\Psr\Log\LoggerInterface $logger: A logger instance.
File
-
core/
modules/ user/ src/ EventSubscriber/ UserFloodSubscriber.php, line 29
Class
- UserFloodSubscriber
- Logs details of User Flood Control events.
Namespace
Drupal\user\EventSubscriberCode
public function __construct(LoggerInterface $logger = NULL) {
$this->logger = $logger;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.