Skip to main content
Drupal 8 Notes
  • Contribute
  • RSS RSS

How to dpm in Drupal 8

Looks like dpm() is broken right now in devel. It gives you a WSOD.

Here’s some alternatives with the devel module enabled:

1. Krumo

1
krumo($variables);

2. Kint

Kint is a great alternative to Krumo.

1
kint($variables);

2. Dump for Twig

Inside Twig template you can:

1
{{ dump() }}
Tweet
  • « How to exclude or remove stylesheets added by core or other modules
  • menu_tree() in Drupal 8 »
Is this post incomplete? Want to help? Add a comment below or click here to contribute.

This site is hosted on Github. Want to help?