public function TaxNumberItem::isEmpty in Commerce Core 8.2
Determines whether the data structure is empty.
Return value
bool TRUE if the data structure is empty, FALSE otherwise.
Overrides Map::isEmpty
2 calls to TaxNumberItem::isEmpty()
- TaxNumberItem::checkValue in modules/
tax/ src/ Plugin/ Field/ FieldType/ TaxNumberItem.php - Checks whether the current value can be used for tax calculation.
- TaxNumberItem::preSave in modules/
tax/ src/ Plugin/ Field/ FieldType/ TaxNumberItem.php - Defines custom presave behavior for field values.
File
- modules/
tax/ src/ Plugin/ Field/ FieldType/ TaxNumberItem.php, line 200
Class
- TaxNumberItem
- Plugin implementation of the 'commerce_tax_number' field type.
Namespace
Drupal\commerce_tax\Plugin\Field\FieldTypeCode
public function isEmpty() {
return $this->value === NULL || $this->value === '';
}