function DateFormat::setPattern

Same name in other branches
  1. 8.9.x core/lib/Drupal/Core/Datetime/Entity/DateFormat.php \Drupal\Core\Datetime\Entity\DateFormat::setPattern()
  2. 10 core/lib/Drupal/Core/Datetime/Entity/DateFormat.php \Drupal\Core\Datetime\Entity\DateFormat::setPattern()
  3. 11.x core/lib/Drupal/Core/Datetime/Entity/DateFormat.php \Drupal\Core\Datetime\Entity\DateFormat::setPattern()

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;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.