You are here

public function DatabaseSource::getTables in Backup and Migrate 5.0.x

Get an array of tables with some info.

Each entry must have at least a 'name' key containing the table name.

Return value

array

Overrides DatabaseSourceInterface::getTables

File

src/Core/Source/DatabaseSource.php, line 88

Class

DatabaseSource
@package Drupal\backup_migrate\Core\Source

Namespace

Drupal\backup_migrate\Core\Source

Code

public function getTables() {
  try {
    return $this
      ->getRawTables();
  } catch (\Exception $e) {

    // Todo: Log this exception.
    return [];
  }
}