I love the features the view provides in Drupal. Sortable tables, Filters, as well as ability to use external modules like views bulk export. My problem is that I want to display a separate database (Call this X), using views. What would be the best way to go about it?
To get around this problem in Drupal 6, I created a content type with all fields that were in Database X, then I created view for that content type by frontend. After that I used hook_pre_render_view() to push data from X to the view. Right now I want to achieve similar results in Drupal 8. I could use this same approach but it doesn't feel very Drupally. I was wondering if there is a better way to achieve this.