Drupal 8: Set menu active trail based on type of currently viewed node

One of the Drupal Contrib modules I used on almost every Drupal 7 site I built is Menu Position. My general use case was: I have a Views view, listing teasers of some content type, for instance "blog", and I want the menu link belonging to this view to be active when viewing a blog node (without having to create a menu item for all blog nodes). With the Menu Position module I could easily implement this with a few clicks.