public function Order::isShippable in Ubercart 8.4
Returns whether an order is considered shippable or not.
Return value
bool TRUE if the order is shippable, FALSE otherwise.
Overrides OrderInterface::isShippable
File
- uc_order/
src/ Entity/ Order.php, line 463
Class
- Order
- Defines the order entity class.
Namespace
Drupal\uc_order\EntityCode
public function isShippable() {
foreach ($this->products as $product) {
if (uc_order_product_is_shippable($product)) {
return TRUE;
}
}
return FALSE;
}