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

Breadcrumb

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

function UserFloodEvent::hasUid

Is the user flood event associated with a uid?

Return value

bool Whether the event has a uid.

File

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

Class

UserFloodEvent
Provides a user flood event for event listeners.

Namespace

Drupal\user\Event

Code

public function hasUid() {
    return !empty($this->uid);
}

API Navigation

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