public function PriceItem::isEmpty in Price 8
Same name and namespace in other branches
- 3.x src/Plugin/Field/FieldType/PriceItem.php \Drupal\price\Plugin\Field\FieldType\PriceItem::isEmpty()
- 2.0.x src/Plugin/Field/FieldType/PriceItem.php \Drupal\price\Plugin\Field\FieldType\PriceItem::isEmpty()
- 2.x src/Plugin/Field/FieldType/PriceItem.php \Drupal\price\Plugin\Field\FieldType\PriceItem::isEmpty()
- 3.0.x src/Plugin/Field/FieldType/PriceItem.php \Drupal\price\Plugin\Field\FieldType\PriceItem::isEmpty()
Determines whether the data structure is empty.
Return value
bool TRUE if the data structure is empty, FALSE otherwise.
Overrides Map::isEmpty
1 method overrides PriceItem::isEmpty()
- PriceModifiedItem::isEmpty in src/
Plugin/ Field/ FieldType/ PriceModifiedItem.php - Determines whether the data structure is empty.
File
- src/
Plugin/ Field/ FieldType/ PriceItem.php, line 120
Class
- PriceItem
- Plugin implementation of the 'price' field type.
Namespace
Drupal\price\Plugin\Field\FieldTypeCode
public function isEmpty() {
return $this->number === NULL || $this->number === '' || empty($this->currency_code);
}