function 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));
    }
}