DateFormat::setPattern

public DateFormat::setPattern($pattern)

Sets the date pattern for this format.

Parameters

string $pattern: The date pattern to use for this format.

Return value

$this

Overrides DateFormatInterface::setPattern

File

core/lib/Drupal/Core/Datetime/Entity/DateFormat.php, line 72

Class

DateFormat
Defines the Date Format configuration entity class.

Namespace

Drupal\Core\Datetime\Entity

Code

public function setPattern($pattern) {
  $this->pattern = $pattern;
  return $this;
}
doc_Drupal
2016-10-29 09:00:29
Comments
Leave a Comment

Please login to continue.