public function Easychart::isEmpty in Easychart 8.3
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/ Easychart.php, line 74 - Contains \Drupal\easychart\Plugin\Field\FieldType\EasychartItem.
Class
- Easychart
- Plugin implementation of the Easychart field type.
Namespace
Drupal\easychart\Plugin\Field\FieldTypeCode
public function isEmpty() {
$value = $this
->get('csv')
->getValue();
return $value === NULL || $value === '';
}