public function DateTimePlus::hasErrors in Service Container 7.2
Same name and namespace in other branches
- 7 lib/Drupal/Component/Datetime/DateTimePlus.php \Drupal\Component\Datetime\DateTimePlus::hasErrors()
Detects if there were errors in the processing of this date.
1 call to DateTimePlus::hasErrors()
- DateTimePlus::format in lib/
Drupal/ Component/ Datetime/ DateTimePlus.php - Formats the date for display.
File
- lib/
Drupal/ Component/ Datetime/ DateTimePlus.php, line 411 - Contains \Drupal\Component\Datetime\DateTimePlus.
Class
- DateTimePlus
- Wraps DateTime().
Namespace
Drupal\Component\DatetimeCode
public function hasErrors() {
return (bool) count($this->errors);
}