public function BundleItemSelection::isEmpty in Commerce Product Bundle 8
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/ BundleItemSelection.php, line 105
Class
- BundleItemSelection
- Plugin implementation of the 'commerce_product_bundle_item_selection' field type.
Namespace
Drupal\commerce_product_bundle\Plugin\Field\FieldTypeCode
public function isEmpty() {
return empty($this->bundle_item) || empty($this->selected_qty) || empty($this->selected_entity);
}