After installing tour_builder at least hook_entity_type_alter is not called by modules weight

Created on 14 June 2017, almost 8 years ago
Updated 5 May 2025, 7 days ago

Problem/Motivation

Even having the correct weight by applying #2679008: Module weight is not taken into account after module installation β†’ my tour_builder hook_entity_type_alter is not called according to (weight: 1) after Tour UI (weight: 0) installing the module.

function tour_builder_entity_type_alter(array &$entity_types) {

Running drush cache-rebuild makes module function as expected.

How to test

  1. drush en tour_ui --yes
  2. drush dl tour_builder --yes
  3. drush @drupal.d8 pm-uninstall tour_builder --yes
  4. Visit http://drupal.d8/admin/config/user-interface/tour and check the Operations (OK: Edit / Delete)
  5. drush @drupal.d8 pm-enable tour_builder --yes
  6. Visit http://drupal.d8/admin/config/user-interface/tour and check the Operations (NOT OK: Clone / Export* missing)
  7. drush @drupal.d8 cache-rebuild
  8. Visit http://drupal.d8/admin/config/user-interface/tour and check the Operations (OK: Edit / Delete / Clone / Export*)

The patch from #2 works for me but in #2679008-16: Module weight is not taken into account after module installation β†’ @tstoeckler suggest

So maybe there is another more fundamental cache invalidation bug that you have uncovered and the cache clear just fixes the symptom by wiping all caches.

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Needs work

Version

11.0 πŸ”₯

Component

extension system

Created by

πŸ‡³πŸ‡±Netherlands clemens.tolboom Groningen, πŸ‡³πŸ‡±/πŸ‡ͺπŸ‡Ί

Live updates comments and jobs are added and updated live.
  • Needs tests

    The change is currently missing an automated test that fails when run with the original code, and succeeds when the bug has been fixed.

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024