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

Breadcrumb

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

function InputInterface::setOption

Sets an option value by name.

Throws

InvalidArgumentException When option given doesn't exist

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

File

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

Class

InputInterface
InputInterface is the interface implemented by all input classes.

Namespace

Symfony\Component\Console\Input

Code

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