You are here

public function ShipmentItem::isEmpty in Commerce Shipping 8.2

Determines whether the data structure is empty.

Return value

bool TRUE if the data structure is empty, FALSE otherwise.

Overrides Map::isEmpty

File

src/Plugin/Field/FieldType/ShipmentItem.php, line 39

Class

ShipmentItem
Plugin implementation of the 'commerce_shipment_item' field type.

Namespace

Drupal\commerce_shipping\Plugin\Field\FieldType

Code

public function isEmpty() {
  return $this->value === NULL || !$this->value instanceof ShipmentItemValue;
}