Module Development

Install Webprofiler and Identify Controllers for Drupal 8, 9

Check your version

This tutorial covers a topic in Drupal 9 which may or may not be the version you're using. We're keeping this tutorial online as a courtesy to users of Drupal 9, but we consider it archived.

Sprout Video

In this tutorial, we'll continue to look under the hood of Drupal 8, this time using a tool bundled with Devel called Webprofiler. You'll learn how to use the web debug toolbar and the profiler. You'll also learn how to reverse engineer a page to find out the names of the controllers responsible for output on that page.

Note: Webprofiler is now a separate project from Devel but still has it as a dependency.

Note: In order to get the Webprofiler timeline view working you need to add some configuration to your settings.php file. See the README.md file included with the Webprofiler module for more information on how to do this.

Additional resources

Webprofiler project on Drupal.org