public function UserFloodEvent::hasUid in Drupal 9
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\EventCode
public function hasUid() {
return !empty($this->uid);
}