Verified Commit 965d5673 authored by Dave Long's avatar Dave Long
Browse files

fix: #3577133 Remove unused class property dateExample

By: quietone
By: karthik_gundu
By: scontzen
By: thirteenthdown
(cherry picked from commit c6498ec0)
parent 7ef42dab
Loading
Loading
Loading
Loading
Loading
+0 −8
Original line number Diff line number Diff line
@@ -19,11 +19,6 @@ class Datetime extends DateElementBase {

  use DoTrustedCallbackTrait;

  /**
   * @var \DateTimeInterface
   */
  protected static $dateExample;

  /**
   * {@inheritdoc}
   */
@@ -255,9 +250,6 @@ public static function processDatetime(&$element, FormStateInterface $form_state
      }
      $date_value = !empty($date) ? $date->format($date_format, $format_settings) : $element['#value']['date'];

      // Creating format examples on every individual date item is messy, and
      // placeholders are invalid for HTML5 date and datetime, so an example
      // format is appended to the title to appear in tooltips.
      $extra_attributes = [
        'type' => $element['#date_date_element'],
      ];