You are here

public function DateTimePlus::getErrors in Drupal 8

Same name and namespace in other branches
  1. 9 core/lib/Drupal/Component/Datetime/DateTimePlus.php \Drupal\Component\Datetime\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 530

Class

DateTimePlus
Wraps DateTime().

Namespace

Drupal\Component\Datetime

Code

public function getErrors() {
  return $this->errors;
}