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

Breadcrumb

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

function InputInterface::getOption

Returns the option value for a given option name.

Throws

InvalidArgumentException When option given doesn't exist

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

File

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

Class

InputInterface
InputInterface is the interface implemented by all input classes.

Namespace

Symfony\Component\Console\Input

Code

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