public function getForWebserviceExport($object, $params = [])
{
$data = $this->getDataFromObjectParam($object, $params);
if ($data instanceof \Pimcore\Model\Object\Data\QuantityValue) {
return ["value" => $data->getValue(), "unit" => $data->getUnitId(), "unitAbbreviation" => is_object($data->getUnit()) ? $data->getUnit() : ""];
} else {
return null;
}
}