public function PriceList::setEndDate in Commerce Pricelist 8
Same name and namespace in other branches
- 8.2 src/Entity/PriceList.php \Drupal\commerce_pricelist\Entity\PriceList::setEndDate()
File
- src/
Entity/ PriceList.php, line 174
Class
- PriceList
- Defines the Price list entity.
Namespace
Drupal\commerce_pricelist\EntityCode
public function setEndDate(DrupalDateTime $end_date = NULL) {
$this
->get('end_date')->value = $end_date ? $end_date
->format('Y-m-d') : NULL;
return $this;
}