public function getDataForResource($data, $object = null, $params = [])
{
if ($data instanceof \Pimcore\Model\Object\Data\QuantityValue) {
return [$this->getName() . "__value" => $data->getValue(), $this->getName() . "__unit" => $data->getUnitId()];
}
return [$this->getName() . "__value" => null, $this->getName() . "__unit" => null];
}