function ksm in Devel 8
Same name and namespace in other branches
- 8.2 kint/kint.module \ksm()
Prints passed argument(s) to the 'message' area of the page.
File
- kint/
kint.module, line 51
Code
function ksm() {
kint_require();
if (\Drupal::currentUser()
->hasPermission('access kint')) {
$args = func_get_args();
$msg = @Kint::dump($args);
drupal_set_message(Markup::create($msg));
}
}