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

fromHash() public method

Converts an $hash to the Value defined by the field type.
public fromHash ( mixed $hash ) : Value
$hash mixed
return Value
    public function fromHash($hash)
    {
        if ($hash === null) {
            return $this->getEmptyValue();
        }
        return $this->hashConverter->convertToValue($hash);
    }