function UserFloodEvent::hasIp

Same name in other branches
  1. 9 core/modules/user/src/Event/UserFloodEvent.php \Drupal\user\Event\UserFloodEvent::hasIp()
  2. 10 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);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.