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

Breadcrumb

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

function InputInterface::getArgument

Returns the argument value for a given argument name.

Throws

InvalidArgumentException When argument given doesn't exist

1 method overrides InputInterface::getArgument()
Input::getArgument in vendor/symfony/console/Input/Input.php
Returns the argument value for a given argument name.

File

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

Class

InputInterface
InputInterface is the interface implemented by all input classes.

Namespace

Symfony\Component\Console\Input

Code

public function getArgument(string $name) : mixed;
RSS feed
Powered by Drupal