public function OrderInterface::getCalculationDate in Commerce Core 8.2
Gets the calculation date/time for the order.
Used during order processing, for determining promotion/tax availability. Matches the placed timestamp, if the order has been placed. Otherwise, falls back to the current request date/time.
Return value
\Drupal\Core\Datetime\DrupalDateTime The calculation date/time, in the store timezone.
1 method overrides OrderInterface::getCalculationDate()
- Order::getCalculationDate in modules/
order/ src/ Entity/ Order.php - Gets the calculation date/time for the order.
File
- modules/
order/ src/ Entity/ OrderInterface.php, line 469
Class
- OrderInterface
- Defines the interface for orders.
Namespace
Drupal\commerce_order\EntityCode
public function getCalculationDate();