Is there a way to prevent other preprocess hooks from being triggered?
I have a Drupal 8 hook_preprocess_HOOK()
implementation, and I'm doing some alterations. There will be other modules with same hook, and I need the other preprocess hooks not to alter my changes to $variables
.
The only options I have are:
- Rely on weights system, which still could cause problems
- Set a value inside
$variables
and prevent other modules from doing their thing if the variable is set