Analyse the content structure of a Drupal site by providing a quick overview of the content types, their fields and relations. The result is a link to an online Graphviz visualizer.
This script does not require any specific installation. Just download the file
and run it from the command line using drush php:script entity-type-explorer
.
Out of the box, the script is restricting the analysis to the following entity types:
- Block content
- Comment
- Media
- Node
- Taxonomy
- Paragraph
You can change this list by editing the $explored_entity_types
variable in
the script.
For the visibility of the generated graph, the script is only displaying and exploring the following fields:
- Body
- Info (the Block Content title field)
- Name (the Taxonomy term name field)
- Description (the Taxonomy term description field)
- Comment
- field_* (all other fields)
You can change this list by editing the $explored_field_names
variable in
the script.