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.
Follow-up to #2272547: Invoke hook after composer dependencies are built
Proposal: introduce composer_manager_build_complete(), which fires after a composer_manager build is complete.
Use case:
- User enables module A, which has a library dependency managed by composer_manager
- Module A needs to fire off a few functions in hook_install(), but it cannot because dependencies are not yet build when that hook in invoked
- Instead, Module A implements composer_manager_build_complete(). which is fired after dependencies are built. Necessary install functions are then called within that implementation.
Comment | File | Size | Author |
---|---|---|---|
#2 | composer_manager-invoke-post-install-hook-2279807-2.patch | 1.5 KB | cpliakas |
Comments
Comment #1
cpliakas CreditAttribution: cpliakas commentedAs mentioned in parent issue, hook is named
hook_composer_dependencies_install()
.Comment #2
cpliakas CreditAttribution: cpliakas commentedComment #3
cpliakas CreditAttribution: cpliakas commented