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

Breadcrumb

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

function InputDefinition::addArguments

Adds an array of InputArgument objects.

Parameters

InputArgument[] $arguments An array of InputArgument objects:

1 call to InputDefinition::addArguments()
InputDefinition::setArguments in vendor/symfony/console/Input/InputDefinition.php
Sets the InputArgument objects.

File

vendor/symfony/console/Input/InputDefinition.php, line 85

Class

InputDefinition
A InputDefinition represents a set of valid command line arguments and options.

Namespace

Symfony\Component\Console\Input

Code

public function addArguments(?array $arguments = []) : void {
    if (null !== $arguments) {
        foreach ($arguments as $argument) {
            $this->addArgument($argument);
        }
    }
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal