/** * Transforms a hash into a FieldType Value using `FieldType::fromHash()`. * The FieldValue is compatible with `transform()`. * * @param array $value * * @return \eZ\Publish\SPI\FieldType\Value */ public function reverseTransform($value) { if (!$value) { return $this->fieldType->getEmptyValue(); } return $this->fieldType->fromHash($value); }
/** * Converts an $hash to the Value defined by the field type * * @param mixed $hash * * @return mixed */ public function fromHash($hash) { return $this->innerFieldType->fromHash($hash); }