A
A
Andrey Strelkov2018-10-01 15:22:08
Drupal
Andrey Strelkov, 2018-10-01 15:22:08

How to display third-party database and table data in Views Drupal 8?

Good afternoon, for Drupal 7 there is a good example chrislarson.me/blog/drupal-and-external-mysql-data... how you can display data from a third-party database and table data using Views hook_views_data. But in Drupal 8, everything has become a little different, how this example will look like in the 8th
Base and the table is not Drupal.
And is there any difference for Views (hook_views_data) that I want to display, rows / fields of a table or a materialized view, views in other words

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
afi13, 2018-10-02
@afi13

hook_views_data() has not changed in Drupal 8
https://api.drupal.org/api/drupal/core%21modules%2...
There is no difference what to display for it, the main thing is that you correctly describe all the fields in the hook itself.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question