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

Breadcrumb

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

function Command::getDefinition

Gets the InputDefinition attached to this Command.

3 calls to Command::getDefinition()
BaseCommand::complete in vendor/composer/composer/src/Composer/Command/BaseCommand.php
@inheritdoc
Command::complete in vendor/symfony/console/Command/Command.php
Supplies suggestions when resolving possible completion options for input (e.g. option or argument).
Command::run in vendor/symfony/console/Command/Command.php
Runs the command.
2 methods override Command::getDefinition()
LazyCommand::getDefinition in vendor/symfony/console/Command/LazyCommand.php
Gets the InputDefinition attached to this Command.
TraceableCommand::getDefinition in vendor/symfony/console/Command/TraceableCommand.php
Gets the InputDefinition attached to this Command.

File

vendor/symfony/console/Command/Command.php, line 383

Class

Command
Base class for all commands.

Namespace

Symfony\Component\Console\Command

Code

public function getDefinition() : InputDefinition {
    return $this->fullDefinition ?? $this->getNativeDefinition();
}

API Navigation

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