You are here

public function DateFormatInterface::setPattern in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 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 33
Contains \Drupal\Core\Datetime\DateFormatInterface.

Class

DateFormatInterface
Provides an interface defining a date format.

Namespace

Drupal\Core\Datetime

Code

public function setPattern($pattern);