Updates the hook for both forward and backward compatibility.
See https://github.com/civicrm/civicrm-core/pull/25101
Hello, thanks for your request, we will review and move changes in next release.
closed