Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. DateTimePlus.php

function 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.

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

File

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

Class

DateTimePlus
Wraps DateTime().

Namespace

Drupal\Component\Datetime

Code

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

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal