Webprofiler toolbar integration for Drupal 8
As someone working on some drupal site you often want to understand what happens on a specific site. This blog post will describe a tool which helps to understand the site faster and easier.
One example you wanna see are the executed database queries. In Drupal 7 we had the wonderful Devel module which showed a list of executed database queries below the page but there are way more information you might want to know:
- PHP Configuration
- The needed time and memory
- List of enabled themes/modules
- Routing information (aka. hook_menu in D7)
- The requested cache/Key-Value data
- Information about the Request raw data
Symfony has a nice toolbar at the bottom
which stores this information, shows it and make it available as separate page
for additional research.
The founder of symfony (fabpot) gave me some
initial version of a drupal integration. Sadly Luca Lusso started independent on a version, so we merged the code together and continue
on https://drupal.org/node/2165731.
So here is out it looks like (click images for larger version):
so you see quite a big amount of integrations already. Let's list what we have at the moment:
- PHP Config
- Request
- Forms
- Database
- Modules/Themes
- Routing
- Cache
- State
- (Config: There is a working branch relying on a core patch: https://drupal.org/node/2184231)
- Your ideas!
You could certainly ask yourself whether this is a total replacement of the devel module. There is an
ongoing discussion at https://drupal.org/node/257770 whether to use the symfony toolbar/an alternative php one.
Please try out the module on Drupal 8 and come up with more ideas and help us.
Weitere Bilder: