You are here

protected function DateTimePlus::prepareFormat in Service Container 7

Same name and namespace in other branches
  1. 7.2 lib/Drupal/Component/Datetime/DateTimePlus.php \Drupal\Component\Datetime\DateTimePlus::prepareFormat()

Prepares the input format value.

Changes the input format before trying to use it, if necessary. Can be overridden to handle special cases.

Parameters

string $format: A PHP format string.

File

lib/Drupal/Component/Datetime/DateTimePlus.php, line 378
Contains \Drupal\Component\Datetime\DateTimePlus.

Class

DateTimePlus
Wraps DateTime().

Namespace

Drupal\Component\Datetime

Code

protected function prepareFormat($format) {
  return $format;
}