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

Breadcrumb

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

function InputInterface::setArgument

Sets an argument value by name.

Throws

InvalidArgumentException When argument given doesn't exist

1 method overrides InputInterface::setArgument()
Input::setArgument in vendor/symfony/console/Input/Input.php
Sets an argument value by name.

File

vendor/symfony/console/Input/InputInterface.php, line 89

Class

InputInterface
InputInterface is the interface implemented by all input classes.

Namespace

Symfony\Component\Console\Input

Code

public function setArgument(string $name, mixed $value) : void;
RSS feed
Powered by Drupal