public function DateTimePlus::getErrors

public DateTimePlus::getErrors()

Gets error messages.

Public function to return the error messages.

Return value

array An array of errors encountered when creating this date.

File

core/lib/Drupal/Component/Datetime/DateTimePlus.php, line 474

Class

DateTimePlus
Wraps DateTime().

Namespace

Drupal\Component\Datetime

Code

public function getErrors() {
  return $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::getErrors/8.1.x