public function DateTimePlus::hasErrors

Detects if there were errors in the processing of this date.

1 call to DateTimePlus::hasErrors()
DateTimePlus::format in drupal/core/lib/Drupal/Component/Datetime/DateTimePlus.php
Formats the date for display.

File

drupal/core/lib/Drupal/Component/Datetime/DateTimePlus.php, line 484
Definition of Drupal\Component\Datetime\DateTimePlus

Class

DateTimePlus
Extends DateTime().

Namespace

Drupal\Component\Datetime

Code

public function hasErrors() {
  return (bool) count($this->errors);
}