You are here

public function WishlistPurchaseItem::isEmpty in Commerce Wishlist 8.3

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/WishlistPurchaseItem.php, line 79

Class

WishlistPurchaseItem
Plugin implementation of the 'commerce_wishlist_purchase' field type.

Namespace

Drupal\commerce_wishlist\Plugin\Field\FieldType

Code

public function isEmpty() {
  return empty($this->order_id) || empty($this->quantity) || empty($this->purchased);
}