You are here

public function DateFormat::setPattern in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/lib/Drupal/Core/Datetime/Entity/DateFormat.php \Drupal\Core\Datetime\Entity\DateFormat::setPattern()

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 77
Contains \Drupal\Core\Datetime\Entity\DateFormat.

Class

DateFormat
Defines the Date Format configuration entity class.

Namespace

Drupal\Core\Datetime\Entity

Code

public function setPattern($pattern) {
  $this->pattern = $pattern;
  return $this;
}