public function PaymentOrderUpdater::needsUpdate in Commerce Core 8.2
Checks whether the given order needs to be updated.
Parameters
\Drupal\commerce_order\Entity\OrderInterface $order: The order.
Return value
bool TRUE if an update was requested, FALSE otherwise.
Overrides PaymentOrderUpdaterInterface::needsUpdate
File
- modules/
payment/ src/ PaymentOrderUpdater.php, line 46
Class
Namespace
Drupal\commerce_paymentCode
public function needsUpdate(OrderInterface $order) {
return !$order
->isNew() && isset($this->updateList[$order
->id()]);
}