Changed hook implementations on behalf of other modules to be called from our...
Closed
requested to merge issue/token-3088219:3088219-inconsistent-loading-hook-implementations into 8.x-1.x
1 unresolved thread
Changed hook implementations on behalf of other modules to be called from our own hook implementations.
Closes #3088219
Merge request reports
Activity
Filter activity
32 32 * Implements hook_token_info_alter(). 33 33 */ 34 34 function token_token_info_alter(&$info) { 35 // Call proxy implementations. 36 if (\Drupal::moduleHandler()->moduleExists('field')) { 37 _field_token_info_alter($info); there is a very subtle dependency in _field_token_info_alter() to be called after token_token_info_alter(), because it checks if token.module defined the token type for it. If not, it doesn't define those tokens and later on we fail to detect if we did define them. The tests pass if you move that down.
Additionally, if we do this, we can also remove token_module_implements_alter() because we don't actually need that anymore.
Please register or sign in to reply