function DateFormatInterface::setPattern
Same name in other branches
- 9 core/lib/Drupal/Core/Datetime/DateFormatInterface.php \Drupal\Core\Datetime\DateFormatInterface::setPattern()
- 10 core/lib/Drupal/Core/Datetime/DateFormatInterface.php \Drupal\Core\Datetime\DateFormatInterface::setPattern()
- 11.x core/lib/Drupal/Core/Datetime/DateFormatInterface.php \Drupal\Core\Datetime\DateFormatInterface::setPattern()
Sets the date pattern for this format.
Parameters
string $pattern: The date pattern to use for this format.
Return value
$this
1 method overrides DateFormatInterface::setPattern()
- DateFormat::setPattern in core/
lib/ Drupal/ Core/ Datetime/ Entity/ DateFormat.php - Sets the date pattern for this format.
File
-
core/
lib/ Drupal/ Core/ Datetime/ DateFormatInterface.php, line 28
Class
- DateFormatInterface
- Provides an interface defining a date format.
Namespace
Drupal\Core\DatetimeCode
public function setPattern($pattern);
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.