commerce_shipping-8.x-2.0-rc2/src/Plugin/Field/FieldType/ShipmentItemListInterface.php
src/Plugin/Field/FieldType/ShipmentItemListInterface.php
<?php namespace Drupal\commerce_shipping\Plugin\Field\FieldType; use Drupal\Core\Field\FieldItemListInterface; use Drupal\commerce_shipping\ShipmentItem as ShipmentItemValue; /** * Represents a list of shipment item field values. */ interface ShipmentItemListInterface extends FieldItemListInterface { /** * Gets the shipment item value objects from the field list. * * @return \Drupal\commerce_shipping\ShipmentItem[] * The shipment item value objects. */ public function getShipmentItems(); /** * Removes the matching shipment item value. * * @param \Drupal\commerce_shipping\ShipmentItem $shipment_item * The shipment item. * * @return $this */ public function removeShipmentItem(ShipmentItemValue $shipment_item); }