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

Breadcrumb

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

function InputOption::isNegatable

Returns true if the option allows passing a negated variant.

Return value

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

3 calls to InputOption::isNegatable()
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 183

Class

InputOption
Represents a command line option.

Namespace

Symfony\Component\Console\Input

Code

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

API Navigation

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