public function RadioactivityField::isEmpty in Radioactivity 4.0.x
Same name and namespace in other branches
- 8.3 src/Plugin/Field/FieldType/RadioactivityField.php \Drupal\radioactivity\Plugin\Field\FieldType\RadioactivityField::isEmpty()
- 8.2 src/Plugin/Field/FieldType/RadioactivityField.php \Drupal\radioactivity\Plugin\Field\FieldType\RadioactivityField::isEmpty()
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/ RadioactivityField.php, line 176
Class
- RadioactivityField
- Plugin implementation of the 'radioactivity' field type.
Namespace
Drupal\radioactivity\Plugin\Field\FieldTypeCode
public function isEmpty() {
$value = $this
->get('energy')
->getValue();
return $value === NULL;
}