RENAMED
RENAMED = ['list' => 'options', 'menu' => 'menu_ui']
Drupal 7 core modules that Drupal 11 names differently.
Turns a parsed Drupal 7 `.info` array into the `.info.yml` a current core reads.
The conversion is data only. A dependency on a core module Drupal 11 renamed is mapped, one on a core module it removed is dropped, and a version constraint on a dependency is cut because no extension here carries a Drupal 7 version. Everything dropped is returned beside the result, so a report can say what the conversion changed.
convert(array$info, string $type) : array{info: array<string,mixed>, dropped: list<string>}
Converts one parsed info array.
| array |
$info | The parsed |
| string | $type | One of |
The .info.yml content and the keys and dependencies the conversion removed.