interface OrderTypeResolverInterface in Commerce Core 8.2
Defines the interface for order type resolvers.
Hierarchy
- interface \Drupal\commerce_order\Resolver\OrderTypeResolverInterface
Expanded class hierarchy of OrderTypeResolverInterface
All classes that implement OrderTypeResolverInterface
1 file declares its use of OrderTypeResolverInterface
- AddToCartForm.php in modules/
cart/ src/ Form/ AddToCartForm.php
File
- modules/
order/ src/ Resolver/ OrderTypeResolverInterface.php, line 10
Namespace
Drupal\commerce_order\ResolverView source
interface OrderTypeResolverInterface {
/**
* Resolves the order type.
*
* @param \Drupal\commerce_order\Entity\OrderItemInterface $order_item
* The order item being added to an order.
*
* @return string|null
* The order type ID, if resolved. Otherwise NULL, indicating that the
* next resolver in the chain should be called.
*/
public function resolve(OrderItemInterface $order_item);
}
Members
Name![]() |
Modifiers | Type | Description | Overrides |
---|---|---|---|---|
OrderTypeResolverInterface:: |
public | function | Resolves the order type. | 2 |