You are here

public function UserFloodEvent::hasIp in Drupal 9

Is the user flood event associated with an IP?

Return value

bool Whether the event has an IP.

File

core/modules/user/src/Event/UserFloodEvent.php, line 151

Class

UserFloodEvent
Provides a user flood event for event listeners.

Namespace

Drupal\user\Event

Code

public function hasIp() {
  return !empty($this->ip);
}