function DateTimePlus::prepareFormat

Same name and namespace in other branches
  1. 9 core/lib/Drupal/Component/Datetime/DateTimePlus.php \Drupal\Component\Datetime\DateTimePlus::prepareFormat()
  2. 10 core/lib/Drupal/Component/Datetime/DateTimePlus.php \Drupal\Component\Datetime\DateTimePlus::prepareFormat()
  3. 11.x core/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.

Return value

string The massaged PHP format string.

File

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

Class

DateTimePlus
Wraps DateTime().

Namespace

Drupal\Component\Datetime

Code

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.