function devel_update_8001
Same name in other branches
- 4.x devel.install \devel_update_8001()
Set the default devel dumper plugin.
File
-
./
devel.install, line 30
Code
function devel_update_8001() {
$kint_enabled = \Drupal::moduleHandler()->moduleExists('kint');
$default_dumper = $kint_enabled ? 'kint' : 'default';
// Set the default dumper plugin to kint if kint module is available.
\Drupal::configFactory()->getEditable('devel.settings')
->set('devel_dumper', $default_dumper)
->save(TRUE);
}