You are here

public function DateFormatInterface::getPattern in Drupal 9

Same name and namespace in other branches
  1. 8 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();