Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. DbCommandBase.php

function DbCommandBase::configure

Overrides Command::configure

4 calls to DbCommandBase::configure()
DbDumpCommand::configure in core/lib/Drupal/Core/Command/DbDumpCommand.php
Configures the current command.
DbDumpCommand::configure in core/lib/Drupal/Core/Command/DbDumpCommand.php
Configures the current command.
DbImportCommand::configure in core/lib/Drupal/Core/Command/DbImportCommand.php
Configures the current command.
DbImportCommand::configure in core/lib/Drupal/Core/Command/DbImportCommand.php
Configures the current command.
2 methods override DbCommandBase::configure()
DbDumpCommand::configure in core/lib/Drupal/Core/Command/DbDumpCommand.php
Configures the current command.
DbImportCommand::configure in core/lib/Drupal/Core/Command/DbImportCommand.php
Configures the current command.

File

core/lib/Drupal/Core/Command/DbCommandBase.php, line 18

Class

DbCommandBase
Base command that abstracts handling of database connection arguments.

Namespace

Drupal\Core\Command

Code

protected function configure() : void {
    $this->addOption('database', NULL, InputOption::VALUE_OPTIONAL, 'The database connection name to use.', 'default')
        ->addOption('database-url', 'db-url', InputOption::VALUE_OPTIONAL, 'A database url to parse and use as the database connection.')
        ->addOption('prefix', NULL, InputOption::VALUE_OPTIONAL, 'Override or set the table prefix used in the database connection.');
}
RSS feed
Powered by Drupal