You are here

interface OrderTypeResolverInterface in Commerce Core 8.2

Defines the interface for order type resolvers.

Hierarchy

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\Resolver
View 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

Namesort descending Modifiers Type Description Overrides
OrderTypeResolverInterface::resolve public function Resolves the order type. 2