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

Breadcrumb

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

function ConsoleCommandEvent::commandShouldRun

Returns true if the command is runnable, false otherwise.

File

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

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

API Navigation

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