protected function CartUnifier::getCartRequestedForCheckout in Commerce Combine Carts 8
Returns the cart requested for checkout.
Return value
\Drupal\commerce_order\Entity\OrderInterface|null
1 call to CartUnifier::getCartRequestedForCheckout()
- CartUnifier::isCartRequestedForCheckout in src/
CartUnifier.php - Returns TRUE if given cart is requested for checkout.
File
- src/
CartUnifier.php, line 188
Class
Namespace
Drupal\commerce_combine_cartsCode
protected function getCartRequestedForCheckout() {
if ($this->routeMatch
->getRouteName() === 'commerce_checkout.form') {
$requested_order = $this->routeMatch
->getParameter('commerce_order');
if ($requested_order) {
return $requested_order;
}
}
return NULL;
}