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

Breadcrumb

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

function Application::getCommandName

Gets the name of the command based on input.

2 calls to Application::getCommandName()
Application::doRun in vendor/composer/composer/src/Composer/Console/Application.php
Runs the current application.
Application::doRun in vendor/symfony/console/Application.php
Runs the current application.
2 methods override Application::getCommandName()
DbDumpApplication::getCommandName in core/lib/Drupal/Core/Command/DbDumpApplication.php
Gets the name of the command based on input.
GenerateProxyClassApplication::getCommandName in core/lib/Drupal/Core/Command/GenerateProxyClassApplication.php
Gets the name of the command based on input.

File

vendor/symfony/console/Application.php, line 1121

Class

Application
An Application is the container for a collection of commands.

Namespace

Symfony\Component\Console

Code

protected function getCommandName(InputInterface $input) : ?string {
    return $this->singleCommand ? $this->defaultCommand : $input->getFirstArgument();
}

API Navigation

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