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

Breadcrumb

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

function Command::isEnabled

Checks whether the command is enabled or not in the current environment.

Override this to check for x or y and return false if the command cannot run properly under the current conditions.

2 methods override Command::isEnabled()
LazyCommand::isEnabled in vendor/symfony/console/Command/LazyCommand.php
Checks whether the command is enabled or not in the current environment.
TraceableCommand::isEnabled in vendor/symfony/console/Command/TraceableCommand.php
Checks whether the command is enabled or not in the current environment.

File

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

Class

Command
Base class for all commands.

Namespace

Symfony\Component\Console\Command

Code

public function isEnabled() : bool {
    return true;
}

API Navigation

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