Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. UserFloodEvent.php

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

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal