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

Breadcrumb

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

function InputArgument::isRequired

Returns true if the argument is required.

Return value

bool true if parameter mode is self::REQUIRED, false otherwise

1 call to InputArgument::isRequired()
InputArgument::setDefault in vendor/symfony/console/Input/InputArgument.php
Sets the default value.

File

vendor/symfony/console/Input/InputArgument.php, line 86

Class

InputArgument
Represents a command line argument.

Namespace

Symfony\Component\Console\Input

Code

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

API Navigation

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