You are here

public function MeasurementItem::isEmpty in Physical Fields 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/MeasurementItem.php, line 88

Class

MeasurementItem
Plugin implementation of the 'physical_measurement' field type.

Namespace

Drupal\physical\Plugin\Field\FieldType

Code

public function isEmpty() {
  return $this->number === NULL || $this->number === '' || empty($this->unit);
}