protected function DbDumpComman8b7c:f320:99b9:690f:4595:cd17:293a:c069getTables protected DbDumpComman8b7c:f320:99b9:690f:4595:cd17:293a:c069getTables(Connection $connection) Returns a list of tables, not including those set to be excluded. Parameters  \Drupal\Core\Database\Connection $connection: The database connection to use. Return value  array An array of table names. An array of table names. File
 core/lib/Drupal/Core/Command/DbDumpCommand.php, line 108  Class
 
DbDumpCommand  Provides a command to dump the current database to a script.  Namespace Drupal\Core\Command Code protected function getTables(Connection $connection) {
  $tables = array_values($connection->schema()->findTables('%'));

  foreach ($tables as $key => $table) {
    // Remove any explicitly excluded tables.
    foreach ($this->excludeTables as $pattern) {
      if (preg_match('/^' . $pattern . '$/', $table)) {
        unset($tables[$key]);
      }
    }
  }

  return $tables;
}


    
{'path': 'public/docs/drupal~8/core-lib-drupal-core-command-dbdumpcommand.php/function/dbdumpcommand-gettables/8.1.x.html', 'source': 'DevDocs.IO'}