Skip to content

Allow preGetValue to return a null value #588

Open
pimcore/pimcore
#19521

Description

@muratbinerbay

Affected capability

Data Objects

Feature description

This is not possible currently because a null-value is treated as the $preValue not being relevant. So it is impossible for the hook to return a null value instead of $data

Activity

  1. fashxp commented on Oct 7, 2026

    @fashxp
    Member

    might that be a BC break?

  2. muratbinerbay commented on Oct 7, 2026

    @muratbinerbay
    Author

    @fashxp I think it shouldn't be.
    The hook will only return null if you use PreGetValueHookResult::ReturnNull. Otherwise everything should stay as it was.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Fields

    Affected capability

    None yet

    Galaxy

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions