public static function Kint::enabled in Devel 8
Same name and namespace in other branches
- 8.2 kint/kint/Kint.class.php \Kint::enabled()
* Enables or disables Kint, can globally enforce the rendering mode. If called without parameters, returns the * current mode. * *
Parameters
mixed $forceMode: * null or void - return current mode * false - disable (no output) * true - enable and detect cli automatically * Kint::MODE_* - enable and force selected mode disregarding detection and function * shorthand (s()/d()), note that you can still override this * with the "~" modifier * * @return mixed previously set value if a new one is passed
16 calls to Kint::enabled()
- Kint.class.php in kint/
kint/ Kint.class.php - Kint::dump in kint/
kint/ Kint.class.php - * Dump information about variables, accepts any number of parameters, supports modifiers: * * clean up any output before kint and place the dump at the top of page: * - Kint::dump() * ***** * expand all nodes on display: * !…
- Kint::trace in kint/
kint/ Kint.class.php - * Prints a debug backtrace, same as Kint::dump(1) * *
- Kint::_parseTrace in kint/
kint/ Kint.class.php - kintParser::escape in kint/
kint/ inc/ kintParser.class.php
File
- kint/
kint/ Kint.class.php, line 91
Class
Code
public static function enabled($forceMode = null) {
# act both as a setter...
if (isset($forceMode)) {
$before = self::$_enabledMode;
self::$_enabledMode = $forceMode;
return $before;
}
# ...and a getter
return self::$_enabledMode;
}