public function DateTimePlus::hasErrors in Drupal 10
Same name and namespace in other branches
- 8 core/lib/Drupal/Component/Datetime/DateTimePlus.php \Drupal\Component\Datetime\DateTimePlus::hasErrors()
- 9 core/lib/Drupal/Component/Datetime/DateTimePlus.php \Drupal\Component\Datetime\DateTimePlus::hasErrors()
Detects if there were errors in the processing of this date.
Return value
bool TRUE if there were errors in the processing of this date, FALSE otherwise.
File
- core/
lib/ Drupal/ Component/ Datetime/ DateTimePlus.php, line 512
Class
- DateTimePlus
- Wraps DateTime().
Namespace
Drupal\Component\DatetimeCode
public function hasErrors() {
return (bool) count($this->errors);
}