function DateTimePlus::hasErrors
Same name in other branches
- 8.9.x core/lib/Drupal/Component/Datetime/DateTimePlus.php \Drupal\Component\Datetime\DateTimePlus::hasErrors()
- 10 core/lib/Drupal/Component/Datetime/DateTimePlus.php \Drupal\Component\Datetime\DateTimePlus::hasErrors()
- 11.x 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.
1 call to DateTimePlus::hasErrors()
- DateTimePlus::format in core/
lib/ Drupal/ Component/ Datetime/ DateTimePlus.php - Formats the date for display.
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);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.