function DbDumpApplication::getDefinition

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

Overridden so the application doesn't expect the command name as the first argument.

File

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

Class

DbDumpApplication
Provides a command to dump a database generation script.

Namespace

Drupal\Core\Command

Code

public function getDefinition() : InputDefinition {
    $definition = parent::getDefinition();
    // Clears the normal first argument (the command name).
    $definition->setArguments();
    return $definition;
}

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