You are here

function kint in Devel 8

Same name and namespace in other branches
  1. 8.2 kint/kint.module \kint()

Alias of Kint::dump().

Prints passed argument(s) using Kint debug tool.

5 string references to 'kint'
DevelDumperTest::testDumpersConfiguration in tests/src/Functional/DevelDumperTest.php
Test dumpers configuration page.
devel_update_8001 in ./devel.install
Set the default devel dumper plugin.
KintExtension::getFunctions in kint/src/Twig/KintExtension.php
KintExtension::getName in kint/src/Twig/KintExtension.php
kint_require in kint/kint.module
Load the Kint class.

File

kint/kint.module, line 10

Code

function kint() {
  kint_require();
  if (\Drupal::currentUser()
    ->hasPermission('access kint')) {
    $args = func_get_args();
    if (PHP_SAPI === 'cli') {
      s($args);
    }
    else {
      \Kint::dump($args);
    }
  }
}