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

Breadcrumb

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

function ConsoleCommandEvent::enableCommand

File

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

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 enableCommand() : bool {
    return $this->commandShouldRun = true;
}

API Navigation

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