function drush_drupalmoduleupgrader_dmu_list in Drupal 7 to 8/9 Module Upgrader 8
Lists all the available module-wide plugins.
Parameters
string $plugin_type: Plugin type.
File
- ./
drupalmoduleupgrader.drush.inc, line 243 - Declarations for Drush.
Code
function drush_drupalmoduleupgrader_dmu_list($plugin_type) {
$manager = \Drupal::service('plugin.manager.drupalmoduleupgrader.' . $plugin_type);
$list = [];
foreach ($manager
->getDefinitions() as $id => $definition) {
$list[$id] = $definition['description'];
}
drush_print_table(drush_key_value_to_array_table($list));
}