OrderProductStorage.php in Ubercart 8.4
Namespace
Drupal\uc_orderFile
uc_order/src/OrderProductStorage.phpView source
<?php
namespace Drupal\uc_order;
use Drupal\Core\Entity\EntityInterface;
use Drupal\Core\Entity\Sql\SqlContentEntityStorage;
/**
* Controller class for ordered products.
*/
class OrderProductStorage extends SqlContentEntityStorage {
/**
* {@inheritdoc}
*/
public function save(EntityInterface $product) {
// Product kits, particularly, shouldn't actually be added to an order,
// but instead they cause other products to be added.
if (isset($product->skip_save) && $product->skip_save == TRUE) {
return;
}
return parent::save($product);
}
}
Classes
Name![]() |
Description |
---|---|
OrderProductStorage | Controller class for ordered products. |