public function DateTimePlus::hasErrors

public 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 462

Class

DateTimePlus
Wraps DateTime().

Namespace

Drupal\Component\Datetime

Code

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

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Component!Datetime!DateTimePlus.php/function/DateTimePlus::hasErrors/8.1.x