public function PriceList::getEndDate in Commerce Pricelist 8
Same name and namespace in other branches
- 8.2 src/Entity/PriceList.php \Drupal\commerce_pricelist\Entity\PriceList::getEndDate()
Gets the price list end date.
Return value
\Drupal\Core\Datetime\DrupalDateTime|null The price list end date, or NULL
Overrides PriceListInterface::getEndDate
File
- src/
Entity/ PriceList.php, line 165
Class
- PriceList
- Defines the Price list entity.
Namespace
Drupal\commerce_pricelist\EntityCode
public function getEndDate() {
if (!$this
->get('end_date')
->isEmpty()) {
return new DrupalDateTime($this
->get('end_date')->value);
}
}