eZ\Publish\Core\FieldType\BinaryBase\Type::fromHash PHP Method

fromHash() public method

Converts an $hash to the Value defined by the field type.
public fromHash ( mixed $hash ) : eZ\Publish\Core\FieldType\BinaryBase\Value
$hash mixed
return eZ\Publish\Core\FieldType\BinaryBase\Value $value
    public function fromHash($hash)
    {
        if ($hash === null) {
            return $this->getEmptyValue();
        }
        return $this->createValue($hash);
    }