function DbDumpApplication::getDefaultCommands

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

File

core/lib/Drupal/Core/Command/DbDumpApplication.php, line 24

Class

DbDumpApplication
Provides a command to dump a database generation script.

Namespace

Drupal\Core\Command

Code

protected function getDefaultCommands() : array {
    // Even though this is a single command, keep the HelpCommand (--help).
    $default_commands = parent::getDefaultCommands();
    $default_commands[] = new DbDumpCommand();
    return $default_commands;
}

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