public function Debugger::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.
Overrides DebuggerInterface::enabled
File
- src/
Plugin/ Purge/ Purger/ Debugger.php, line 85
Class
- Debugger
- Provides a centralized debugger for Acquia purger plugins.
Namespace
Drupal\acquia_purge\Plugin\Purge\PurgerCode
public function enabled() {
return $this->enabled;
}