You are here

function _demo_enum_tables in Demonstration site (Sandbox / Snapshot) 8

Same name and namespace in other branches
  1. 6 database_mysql_dump.inc \_demo_enum_tables()
  2. 7 database_mysql_dump.inc \_demo_enum_tables()

Enumerate database tables.

1 call to _demo_enum_tables()
demo_enum_tables in ./demo.module
Returns a list of tables in the active database.

File

./demo.module, line 223

Code

function _demo_enum_tables() {

  // TODO: Drupal Rector Notice: Please delete the following comment after you've made any necessary changes.
  // You will need to use `\Drupal\core\Database\Database::getConnection()` if you do not yet have access to the container here.
  return \Drupal::database()
    ->query('SHOW TABLES')
    ->fetchCol();
}