Skip to main content
Drupal API
Menu
User account menu
Log in
Breadcrumb
Drupal Core 11.1.x
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
; }
RSS feed