function DateFormatInterface::getPattern

Same name and namespace in other branches
  1. 9 core/lib/Drupal/Core/Datetime/DateFormatInterface.php \Drupal\Core\Datetime\DateFormatInterface::getPattern()
  2. 8.9.x core/lib/Drupal/Core/Datetime/DateFormatInterface.php \Drupal\Core\Datetime\DateFormatInterface::getPattern()
  3. 10 core/lib/Drupal/Core/Datetime/DateFormatInterface.php \Drupal\Core\Datetime\DateFormatInterface::getPattern()

Gets the date pattern string for this format.

Return value

string The pattern string as expected by date().

1 method overrides DateFormatInterface::getPattern()
DateFormat::getPattern in core/lib/Drupal/Core/Datetime/Entity/DateFormat.php
Gets the date pattern string for this format.

File

core/lib/Drupal/Core/Datetime/DateFormatInterface.php, line 18

Class

DateFormatInterface
Provides an interface defining a date format.

Namespace

Drupal\Core\Datetime

Code

public function getPattern();

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