function DbToolsApplication::getDefaultCommands

Same name in other branches
  1. 9 core/lib/Drupal/Core/Command/DbToolsApplication.php \Drupal\Core\Command\DbToolsApplication::getDefaultCommands()
  2. 8.9.x core/lib/Drupal/Core/Command/DbToolsApplication.php \Drupal\Core\Command\DbToolsApplication::getDefaultCommands()
  3. 11.x core/lib/Drupal/Core/Command/DbToolsApplication.php \Drupal\Core\Command\DbToolsApplication::getDefaultCommands()

File

core/lib/Drupal/Core/Command/DbToolsApplication.php, line 22

Class

DbToolsApplication
Provides a command to import a database generation script.

Namespace

Drupal\Core\Command

Code

protected function getDefaultCommands() : array {
    $default_commands = parent::getDefaultCommands();
    $default_commands[] = new DbDumpCommand();
    $default_commands[] = new DbImportCommand();
    return $default_commands;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.