public function OrderInterface::logChanges in Ubercart 8.4
Logs changes made to an order.
Parameters
array $changes: An array of changes. Two formats are allowed:
- keys: Keys being the name of the field changed and the values being associative arrays with the keys 'old' and 'new' to represent the old and new values of the field. These will be converted into a changed message.
- string: A pre-formatted string describing the change. This is useful for logging details like payments.
Return value
$this
1 method overrides OrderInterface::logChanges()
- Order::logChanges in uc_order/
src/ Entity/ Order.php - Logs changes made to an order.
File
- uc_order/
src/ OrderInterface.php, line 205
Class
- OrderInterface
- Provides an interface defining an Ubercart order entity.
Namespace
Drupal\uc_orderCode
public function logChanges(array $changes);