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);
}
doc_Drupal
2016-10-29 09:01:03
Comments
Leave a Comment

Please login to continue.