You are here

public function UserFloodEvent::hasIp in Drupal 10

Same name and namespace in other branches
  1. 9 core/modules/user/src/Event/UserFloodEvent.php \Drupal\user\Event\UserFloodEvent::hasIp()

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);
}