Skip to content

Sites devel

Sites devel adds a Sites debug information block to the content region of every page, for developers working on a platform. For the request it dumps the sites that claim the route with their resolved settings (sensitive ones redacted), the active site, the route, the languages, and the path aliases and redirects of the route's entity. A site's configuration overrides show their values only to users with Administer sites; others see which configuration they change, each value redacted. An override that comes from a sensitive setting stays redacted for everyone. In development mode the block and Devel's dumps show to every logged-in user. Keep the module off production.

Install

A project of its own, drupal.org/project/sites_devel:

composer require drupal/sites_devel
drush en sites_devel

Requires Sites, devel (devel), block_plugin_view_builder (block_plugin_view_builder).

Configure

The block needs no placement: it shows to users with View the Sites debug block. Development mode is the sites_devel.development container parameter, false by default; set it to true in a development environment's services.yml to show the block and Devel's output to every logged-in user. Anonymous visitors still need the permission. Details: Sites devel.

Permissions

Permission Machine name
View the Sites debug block use sites_devel

Last updated 2026-11-22

Used in