public function OrderTypeResolverInterface::resolve in Commerce Core 8.2
Resolves the order type.
Parameters
\Drupal\commerce_order\Entity\OrderItemInterface $order_item: The order item being added to an order.
Return value
string|null The order type ID, if resolved. Otherwise NULL, indicating that the next resolver in the chain should be called.
2 methods override OrderTypeResolverInterface::resolve()
- ChainOrderTypeResolver::resolve in modules/
order/ src/ Resolver/ ChainOrderTypeResolver.php - Resolves the order type.
- DefaultOrderTypeResolver::resolve in modules/
order/ src/ Resolver/ DefaultOrderTypeResolver.php - Resolves the order type.
File
- modules/
order/ src/ Resolver/ OrderTypeResolverInterface.php, line 22
Class
- OrderTypeResolverInterface
- Defines the interface for order type resolvers.
Namespace
Drupal\commerce_order\ResolverCode
public function resolve(OrderItemInterface $order_item);