ShipmentItem.php in Commerce Shipping 8.2
File
src/Plugin/DataType/ShipmentItem.php
View source
<?php
namespace Drupal\commerce_shipping\Plugin\DataType;
use Drupal\Core\TypedData\TypedData;
final class ShipmentItem extends TypedData {
protected $value;
public function toArray() {
return $this->value ? $this->value
->toArray() : NULL;
}
}
Classes
Name |
Description |
ShipmentItem |
Plugin annotation
@DataType(
id = "shipment_item",
label = @Translation("Shipment item"),
description = @Translation("Shipment item."),
definition_class = "\Drupal\commerce_shipping\TypedData\ShipmentItemDataDefinition"
) |