I have created a view with content types in my Drupal 8 and for this view page I have created a customised filter. The view page is located in sites/mysite/modules/view/config/install

And the customised filter is located in sites/mysite/modules/filter/src/Plugin/Block

The issue for me is that I want to change a title of the filter in hook function in view.module . But it is loaded before the FilterBlock. How can I specify the order of the invoked files?

2 Answers 2


There is two way to do so :

  1. Using this module modules weight

  2. Using hook_module_implements_alter


To change the order of which module's hook will fire first when more than one module implements the same hook you can use hook_module_implements_alter(). It was created for exactly this kind of situation.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.