Paragraph Usage Dashboard
Description:
Provides a powerful visual dashboard of Paragraph Types and where they are used, including icons, content types, and path aliases .
Key Features
- Visual Dashboard β Clean, intuitive interface showing paragraph usage at a glance
- Paragraph Type Icons β Displays configured icons for each paragraph type
- Content Type Usage β Shows which content types utilize each paragraph type
- Path Aliases Display β Lists actual URLs rather than numeric IDs
- Quick Access Links β Buttons for immediate navigation to entities
- Unused Paragraph Detection β Highlights paragraph types not used anywhere
- Advanced Filtering β Filter by paragraph name, path alias, or unused status
- Multi-Select Filter β Choose multiple paragraph types to display
- Path Search β Find paragraphs used on pages matching specific URL patterns
- Drill-Down Detail Views β See detailed instance-level usage
- Modern Architecture β Built using Drupal 11 OOP standards and services
Use Cases
- Content audits and cleanup
- Content migration planning
- Content strategy and governance
- Quality assurance
- Training for editors
- Maintenance β identifying unused paragraph types
Dashboard Features
The main dashboard (/admin/reports/paragraph-usage) includes:
- Icons for each paragraph type
- Clickable paragraph type names with usage badges
- List of content types using each paragraph type
- Human-readable path aliases of parent entities
- Link to detailed usage information
Filtering Options
- Show only unused paragraph types
- Search by paragraph type name
- Search by path alias
- Select specific paragraph types
- Persistent filters that stay active after refresh
Detail View
Clicking a paragraph type shows:
- Titles of entities using the paragraph
- Content type and bundle info
- Field name where the paragraph appears
- Path alias for each instance
- View links for each parent entity
Technical Highlights
- No database schema changes
- Optimized entity queries
- Service-based architecture
- Compatible with Drupal 11
- Accessible and responsive UI
Requirements
- Drupal 11
- Paragraphs module 1.x
- PHP 8.1+
Installation
- Install via Composer:
composer require drupal/paragraph_usage_dashboard - Enable the module:
drush en paragraph_usage_dashboard - Grant the "Access paragraph usage dashboard" permission
- Navigate to: Reports β Paragraph Usage
Permissions
access paragraph usage dashboard β Required to view dashboard and detail pages.
Architecture
- Services β Data collection via ParagraphUsageCollector
- Controllers β Dashboard and details
- Forms β Filter handling
- OOP Hooks β Modern attribute-based hooks
- Twig Templates β Themeable dashboard layout
- State API β Stores filter selections
Why This Module?
This module provides visibility into how paragraphs are distributed across a site β something Drupal does not do natively.
Short name
paragraph_usage_dashboard