Details
-
Type: Improvement
-
Status: Done/Fixed
-
Priority: Important
-
Resolution: Fixed/Completed
-
Affects Version/s: 4.7.25
-
Fix Version/s: 4.7.27
-
Component/s: None
-
Labels:
-
Versioning Impact:Patch (backwards-compatible bug fixes)
-
Documentation Required?:None
-
Funding Source:Needs Funding
-
Verified?:No
Description
Overview
Add support for calling CiviCRM hooks provided by Drupal modules in a Drupal 8 installation.
Before
Code for CiviCRM hooks provided by Drupal 8 modules never gets called.
After
Code for CiviCRM hooks provided by Drupal 8 modules now gets called after adding the appropriate code to make CiviCRM aware of the Drupal 8 modules.
Technical Details
I've refactored \CRM_Utils_Hook_DrupalBase to include a ::getDrupalModules method that calls the existing Drupal code for obtaining the module list. Then I built out \CRM_Utils_Hook_Drupal8 class to override the method with the Drupal 8 equivalent code for obtaining the list of modules.