You are here

public function SmartDateFormat::setDateFormat in Smart Date 8

Same name and namespace in other branches
  1. 8.2 src/Entity/SmartDateFormat.php \Drupal\smart_date\Entity\SmartDateFormat::setDateFormat()
  2. 3.x src/Entity/SmartDateFormat.php \Drupal\smart_date\Entity\SmartDateFormat::setDateFormat()
  3. 3.0.x src/Entity/SmartDateFormat.php \Drupal\smart_date\Entity\SmartDateFormat::setDateFormat()
  4. 3.1.x src/Entity/SmartDateFormat.php \Drupal\smart_date\Entity\SmartDateFormat::setDateFormat()
  5. 3.2.x src/Entity/SmartDateFormat.php \Drupal\smart_date\Entity\SmartDateFormat::setDateFormat()
  6. 3.3.x src/Entity/SmartDateFormat.php \Drupal\smart_date\Entity\SmartDateFormat::setDateFormat()
  7. 3.4.x src/Entity/SmartDateFormat.php \Drupal\smart_date\Entity\SmartDateFormat::setDateFormat()

File

src/Entity/SmartDateFormat.php, line 139

Class

SmartDateFormat
Defines the Smart date format entity.

Namespace

Drupal\smart_date\Entity

Code

public function setDateFormat($date_format) {
  $this
    ->set('date_format', $date_format);
  return $this;
}