function DateFormatInterface::getPattern
Same name in other branches
- 9 core/lib/Drupal/Core/Datetime/DateFormatInterface.php \Drupal\Core\Datetime\DateFormatInterface::getPattern()
- 8.9.x core/lib/Drupal/Core/Datetime/DateFormatInterface.php \Drupal\Core\Datetime\DateFormatInterface::getPattern()
- 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
File
-
core/
lib/ Drupal/ Core/ Datetime/ DateFormatInterface.php, line 18
Class
- DateFormatInterface
- Provides an interface defining a date format.
Namespace
Drupal\Core\DatetimeCode
public function getPattern();
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.