Issue #3310654 by ciprian.stavovei: dynamic_entity_reference required in build_hooks is not supported on drupal 9.4