You are here

public function InvoiceController::saveRevision in Commerce Invoice 7.2

File

src/Entity/InvoiceController.php, line 16
The entity controller for invoices.

Class

InvoiceController

Namespace

Drupal\commerce_invoice\Entity

Code

public function saveRevision($entity) {
  if (!isset($entity->revision_created)) {
    $entity->revision_created = REQUEST_TIME;
  }
  if (!isset($entity->revision_uid)) {
    $entity->revision_uid = $GLOBALS['user']->uid;
  }
  return parent::saveRevision($entity);
}