You are here

function ksm in Devel 8.2

Same name and namespace in other branches
  1. 8 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::messenger()
      ->addMessage(Markup::create($msg));
  }
}