@trigger_error('Calling '.__METHOD__.'() without the $time argument is deprecated in drupal:10.3.0 and is removed from drupal:11.0.0. See https://www.drupal.org/node/3220378',E_USER_DEPRECATED);
@@ -375,29 +375,6 @@ public static function validateDatetime(&$element, FormStateInterface $form_stat
}
}
/**
* Creates an example for a date format.
*
* This is centralized for a consistent method of creating these examples.
*
* @param string $format
* The date format.
*
* @return string
*
* @deprecated in drupal:10.2.0 and is removed from drupal:11.0.0.
* There is no replacement.
*
* @see https://www.drupal.org/node/3385058
*/
publicstaticfunctionformatExample($format){
@trigger_error(__METHOD__.' is deprecated in drupal:10.2.0 and is removed from drupal:11.0.0. There is no replacement. See https://www.drupal.org/node/3385058',E_USER_DEPRECATED);
if(!static::$dateExample){
static::$dateExample=newDrupalDateTime();
}
returnstatic::$dateExample->format($format);
}
/**
* Retrieves the right format for an HTML5 date element.