protected function DateTimePlus::prepareFormat

protected DateTimePlus::prepareFormat($format)

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 425

Class

DateTimePlus
Wraps DateTime().

Namespace

Drupal\Component\Datetime

Code

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

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Component!Datetime!DateTimePlus.php/function/DateTimePlus::prepareFormat/8.1.x