You are here

CartItemInterface.php in Ubercart 8.4

Namespace

Drupal\uc_cart

File

uc_cart/src/CartItemInterface.php
View source
<?php

namespace Drupal\uc_cart;

use Drupal\Core\Entity\EntityChangedInterface;
use Drupal\Core\Entity\ContentEntityInterface;

/**
 * Provides an interface defining a Ubercart cart item entity.
 */
interface CartItemInterface extends ContentEntityInterface, EntityChangedInterface {

  /**
   * Converts a cart item into an order product.
   *
   * @return \Drupal\uc_order\OrderProductInterface
   *   The order product.
   */
  public function toOrderProduct();

}

Interfaces

Namesort descending Description
CartItemInterface Provides an interface defining a Ubercart cart item entity.