I have Drupal 8 installation, with a custom content type. I would like to redirect to a specific page after node form submission.
What I have tried so far: Using hook_form_alter() and it works, but that's not the point here.
What I want to achieve: Delivering the same functionality in a new OOP code based way.
What I have found so far: https://www.thirdandgrove.com/redirecting-node-pages-drupal-8
This example shows the replacement for the old hook_init().
Update 1: Rules module can achieve the desired functionality.
Update 2: Node_save_redirect module can achieve the desired functionality.
Update 3: A possible answer https://www.foreach.be/blog/how-manipulate-forms-drupal-8 can someone with enough D8 experience actually confirm if that's actually the official way of doing things ?