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

Breadcrumb

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

function InputOption::acceptValue

Returns true if the option accepts a value.

Return value

bool true if value mode is not self::VALUE_NONE, false otherwise

3 calls to InputOption::acceptValue()
InputOption::setDefault in vendor/symfony/console/Input/InputOption.php
Sets the default value.
InputOption::__construct in vendor/composer/composer/src/Composer/Console/Input/InputOption.php
InputOption::__construct in vendor/symfony/console/Input/InputOption.php

File

vendor/symfony/console/Input/InputOption.php, line 143

Class

InputOption
Represents a command line option.

Namespace

Symfony\Component\Console\Input

Code

public function acceptValue() : bool {
    return $this->isValueRequired() || $this->isValueOptional();
}

API Navigation

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