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

Breadcrumb

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

function ArrayInput::getFirstArgument

Overrides InputInterface::getFirstArgument

File

vendor/symfony/console/Input/ArrayInput.php, line 35

Class

ArrayInput
ArrayInput represents an input provided as an array.

Namespace

Symfony\Component\Console\Input

Code

public function getFirstArgument() : ?string {
    foreach ($this->parameters as $param => $value) {
        if ($param && \is_string($param) && '-' === $param[0]) {
            continue;
        }
        return $value;
    }
    return null;
}

API Navigation

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