This project is not covered by Drupal’s security advisory policy.
SDC Inspector shows the Single Directory Components on a page as a tree, with the props and slots each one receives and the template that renders it. Use it to find where a component comes from and what to pass to it.
Features
- Component tree. Components are listed as they are nested on the page, inside the regions, blocks, entities, views and Layout Builder sections that render them.
- Props and slots. For each component: the value of each prop and slot, its schema, unset props with their defaults, and props it receives but does not declare.
- Rendered by. The Twig template and line that included the component.
- Templates. For regions, blocks, entities and views: the template in use and the template suggestions, most specific first.
- Find it on the page. Select an item in the tree to highlight it on the page, or click a part of the page to select the component that rendered it. Search the tree by name.
Installation
composer require 'drupal/sdc_inspector:^1.0@alpha' drush en sdc_inspector drush cr
Configuration
- Go to Configuration › Development › SDC Inspector (
/admin/config/development/sdc-inspector). The page shows whether Twig debug mode is on, and links to the setting when it is off. The inspector needs Twig debug mode. - Give the Use SDC Inspector permission to developer roles. Pages for users without it do not change.
Usage
- Pages show an SDC button with the number of components. Click it to open the inspector.
- Select an item in the tree to see its details and highlight it on the page. To go the other way, press Pick from the page (cursor button) and click any part of the page.
- Narrow the tree with the search field, Show (funnel button: which types of items it lists) and Isolate (target button: only the selected item, its children and its ancestors).
Development only
The inspector exposes internal values such as props, URLs and entity labels. Do not enable it on production sites.
Supporting organizations:
Sponsored development time
Project information
- Project categories: Developer tools
- Created by mhespanhol on , updated
This project is not covered by the security advisory policy.
Use at your own risk! It may have publicly disclosed vulnerabilities.
Releases
1.0.0-alpha1
released 1 December 2026
Works with Drupal: ^11.3 || ^12
Install:
Development version: 1.0.x-dev updated 1 Dec 2026 at 10:20 UTC


