Provides Drush commands showing the tree of dependencies between Drupal objects, such as modules or configuration entities. Useful to understand the dependency chain in a Drupal installation.
./vendor/bin/drush why:module node --dependent-type=module
View output
node
├─forum
├─history
│ └─forum
└─taxonomy
└─forum
./vendor/bin/drush why:module node --dependent-type=module --no-only-installed
View output
node
├─book
├─forum
├─history
│ └─forum
├─statistics
├─taxonomy
│ └─forum
└─tracker
./vendor/bin/drush why:module node --dependent-type=config
View output
node
├─core.entity_view_mode.node.full
├─core.entity_view_mode.node.rss
├─core.entity_view_mode.node.search_index
├─core.entity_view_mode.node.search_result
├─core.entity_view_mode.node.teaser
│ └─core.entity_view_display.node.forum.teaser
├─field.storage.node.body
│ └─field.field.node.forum.body
│ ├─core.entity_form_display.node.forum.default
│ ├─core.entity_view_display.node.forum.default
│ └─core.entity_view_display.node.forum.teaser
├─field.storage.node.comment_forum
│ └─field.field.node.forum.comment_forum
│ ├─core.entity_form_display.node.forum.default
│ ├─core.entity_view_display.node.forum.default
│ └─core.entity_view_display.node.forum.teaser
├─field.storage.node.taxonomy_forums
│ └─field.field.node.forum.taxonomy_forums
│ ├─core.entity_form_display.node.forum.default
│ ├─core.entity_view_display.node.forum.default
│ └─core.entity_view_display.node.forum.teaser
├─system.action.node_delete_action
├─system.action.node_make_sticky_action
├─system.action.node_make_unsticky_action
├─system.action.node_promote_action
├─system.action.node_publish_action
├─system.action.node_save_action
├─system.action.node_unpromote_action
└─system.action.node_unpublish_action
./vendor/bin/drush why:config node.type.forum
View output
node.type.forum
├─core.base_field_override.node.forum.promote
├─core.base_field_override.node.forum.title
├─core.entity_form_display.node.forum.default
├─core.entity_view_display.node.forum.default
├─core.entity_view_display.node.forum.teaser
├─field.field.node.forum.body
│ ├─core.entity_form_display.node.forum.default
│ ├─core.entity_view_display.node.forum.default
│ └─core.entity_view_display.node.forum.teaser
├─field.field.node.forum.comment_forum
│ ├─core.entity_form_display.node.forum.default
│ ├─core.entity_view_display.node.forum.default
│ └─core.entity_view_display.node.forum.teaser
└─field.field.node.forum.taxonomy_forums
├─core.entity_form_display.node.forum.default
├─core.entity_view_display.node.forum.default
└─core.entity_view_display.node.forum.teaser
Claudiu Cristea | https://www.drupal.org/u/claudiucristea