Skip to content
Snippets Groups Projects

Changed hook implementations on behalf of other modules to be called from our...

1 unresolved thread

Changed hook implementations on behalf of other modules to be called from our own hook implementations.

Closes #3088219

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
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
  • Please register or sign in to reply
    Loading