You are here

public function DebuggerInterface::enabled in Acquia Purge 8

Check whether the debugger is enabled or not.

The debugger is enabled when both the logging channel passed to the purger instantiating this debugger, yields true on ::isDebuggingEnabled() and when php_sapi_name() returns 'cli'. Under other conditions debugging is considered disabled.

Return value

bool TRUE when debugging is considered enabled, FALSE otherwise.

1 method overrides DebuggerInterface::enabled()
Debugger::enabled in src/Plugin/Purge/Purger/Debugger.php
Check whether the debugger is enabled or not.

File

src/Plugin/Purge/Purger/DebuggerInterface.php, line 50

Class

DebuggerInterface
Describes a centralized debugger for Acquia purger plugins.

Namespace

Drupal\acquia_purge\Plugin\Purge\Purger

Code

public function enabled();