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

Breadcrumb

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

function InputOption::isArray

Returns true if the option can take multiple values.

Return value

bool true if mode is self::VALUE_IS_ARRAY, false otherwise

3 calls to InputOption::isArray()
InputOption::equals in vendor/symfony/console/Input/InputOption.php
Checks whether the given option equals this one.
InputOption::setDefault in vendor/symfony/console/Input/InputOption.php
Sets the default value.
InputOption::__construct in vendor/symfony/console/Input/InputOption.php

File

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

Class

InputOption
Represents a command line option.

Namespace

Symfony\Component\Console\Input

Code

public function isArray() : bool {
    return self::VALUE_IS_ARRAY === (self::VALUE_IS_ARRAY & $this->mode);
}

API Navigation

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