commerce-8.x-2.8/modules/order/src/OrderAssignmentInterface.php

modules/order/src/OrderAssignmentInterface.php
<?php

namespace Drupal\commerce_order;

use Drupal\commerce_order\Entity\OrderInterface;
use Drupal\user\UserInterface;

/**
 * Handles assigning anonymous orders to user accounts.
 */
interface OrderAssignmentInterface {

  /**
   * Assigns the anonymous order to the given user account.
   *
   * @param \Drupal\commerce_order\Entity\OrderInterface $order
   *   The order.
   * @param \Drupal\user\UserInterface $account
   *   The user account.
   */
  public function assign(OrderInterface $order, UserInterface $account);

  /**
   * Assigns multiple anonymous orders to the given user account.
   *
   * @param \Drupal\commerce_order\Entity\OrderInterface[] $orders
   *   The orders.
   * @param \Drupal\user\UserInterface $account
   *   The user account.
   */
  public function assignMultiple(array $orders, UserInterface $account);

}

Главная | Обратная связь

drupal hosting | друпал хостинг | it patrol .inc