Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Doesn't matter in which phase hook_requirements is, it is expected to return an array every time. If it returns NULL, it will break under certain conditions.
Comment | File | Size | Author |
---|---|---|---|
#2 | 2717375-hook_requirements-have-to-return-an-array.patch | 1.21 KB | chr.fritsch |
|
Comments
Comment #2
chr.fritschComment #3
chr.fritschComment #4
slashrsm CreditAttribution: slashrsm at MD Systems GmbH commentedIn what kind of situations will this break? It seems that ModuleHandlerInterface::invokeAll() is able to handle it.
Comment #5
chr.fritscharray_merge in drupal_check_profile cant handle it. We try to enable media_entity in an install profile and there it breaks.
Comment #7
slashrsm CreditAttribution: slashrsm at MD Systems GmbH commentedRight. I wasn't able to find this usage, when I was searching codebase. Committed.
Thanks!