I am creating a module for Drupal 8. One of the requirements is that you first add a new database in settings.php. On the admin page, I want to check if the user did this step and show a warning if he didn't. I tried this:
global $databases;
But doing a var_dump shows nothing.
How do I access the databases variable so I can check if the database is setup?