eZ\Publish\Core\FieldType\Page\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 $this->hashConverter->convertFromValue($value);
    }