eZ\Publish\Core\FieldType\MapLocation\Type::toHash PHP Method

toHash() public method

Converts a $Value to a hash.
public toHash ( eZ\Publish\SPI\FieldType\Value $value ) : mixed
$value eZ\Publish\SPI\FieldType\Value
return mixed
    public function toHash(SPIValue $value)
    {
        if ($this->isEmptyValue($value)) {
            return null;
        }
        return array('latitude' => $value->latitude, 'longitude' => $value->longitude, 'address' => $value->address);
    }