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

Breadcrumb

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

function JsonDescriptor::getInputArgumentData

2 calls to JsonDescriptor::getInputArgumentData()
JsonDescriptor::describeInputArgument in vendor/symfony/console/Descriptor/JsonDescriptor.php
Describes an InputArgument instance.
JsonDescriptor::getInputDefinitionData in vendor/symfony/console/Descriptor/JsonDescriptor.php

File

vendor/symfony/console/Descriptor/JsonDescriptor.php, line 91

Class

JsonDescriptor
JSON descriptor.

Namespace

Symfony\Component\Console\Descriptor

Code

private function getInputArgumentData(InputArgument $argument) : array {
    return [
        'name' => $argument->getName(),
        'is_required' => $argument->isRequired(),
        'is_array' => $argument->isArray(),
        'description' => preg_replace('/\\s*[\\r\\n]\\s*/', ' ', $argument->getDescription()),
        'default' => \INF === $argument->getDefault() ? 'INF' : $argument->getDefault(),
    ];
}

API Navigation

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