Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. DateTimePlus.php

function 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;
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal