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

Breadcrumb

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

function TraceableCommand::extractInteractiveInputs

1 call to TraceableCommand::extractInteractiveInputs()
TraceableCommand::run in vendor/symfony/console/Command/TraceableCommand.php
Runs the command.

File

vendor/symfony/console/Command/TraceableCommand.php, line 338

Class

TraceableCommand
@internal

Namespace

Symfony\Component\Console\Command

Code

private function extractInteractiveInputs(array $arguments, array $options) : void {
    foreach ($arguments as $argName => $argValue) {
        if (\array_key_exists($argName, $this->arguments) && $this->arguments[$argName] === $argValue) {
            continue;
        }
        $this->interactiveInputs[$argName] = $argValue;
    }
    foreach ($options as $optName => $optValue) {
        if (\array_key_exists($optName, $this->options) && $this->options[$optName] === $optValue) {
            continue;
        }
        $this->interactiveInputs['--' . $optName] = $optValue;
    }
}
RSS feed
Powered by Drupal