function UserFloodEvent::hasUid
Same name in other branches
- 10 core/modules/user/src/Event/UserFloodEvent.php \Drupal\user\Event\UserFloodEvent::hasUid()
- 11.x core/modules/user/src/Event/UserFloodEvent.php \Drupal\user\Event\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\EventCode
public function hasUid() {
return !empty($this->uid);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.