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

Breadcrumb

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

function Input::setArgument

Overrides InputInterface::setArgument

File

vendor/symfony/console/Input/Input.php, line 97

Class

Input
Input is the base class for all concrete Input classes.

Namespace

Symfony\Component\Console\Input

Code

public function setArgument(string $name, mixed $value) : void {
    if (!$this->definition
        ->hasArgument($name)) {
        throw new InvalidArgumentException(\sprintf('The "%s" argument does not exist.', $name));
    }
    $this->arguments[$name] = $value;
}

API Navigation

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