There is no drush pm-info
command in Drush 9.3, it was replaced pm:list
.
(https://github.com/drush-ops/drush/issues/3487, https://github.com/drush-ops/drush/issues/5557)
But now there is no Required by
field in a field list
(see FIELDS section in drush pm:list --help
)
Current workaround is just open /admin/modules
page and look for Required by
,
or use some php code if you have access to the drush.
drush ev '$module = "views"; $modules = _system_rebuild_module_data(); \Drupal::moduleHandler()->buildModuleDependencies($modules); var_dump($modules[$module]->required_by);'
UPD: Drupal 9 version:
# Dependencies of the module
drush ev '$module = "views"; $modules = \Drupal::service("extension.list.module")->getList(); echo implode(array_keys($modules[$module]->requires),", ");'
# Dependencies to the module
drush ev '$module = "views"; $modules = \Drupal::service("extension.list.module")->getList(); echo implode(array_keys($modules[$module]->required_by),", ");'
NOTE: be worried with php code, may cause performance issues.