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

Breadcrumb

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

function ConsoleCommandEvent::disableCommand

Disables the command, so it won't be run.

File

vendor/symfony/console/Event/ConsoleCommandEvent.php, line 37

Class

ConsoleCommandEvent
Allows to do things before the command is executed, like skipping the command or executing code before the command is going to be executed.

Namespace

Symfony\Component\Console\Event

Code

public function disableCommand() : bool {
    return $this->commandShouldRun = false;
}

API Navigation

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