What problem does this solve?
Right now PHP support only seems to look for files with PHP extension.
We are working on an old codebase that are evaluating to migrate (Drupal 6 to Drupal 11).
But there are different extensions that Drupal 6 use (.inc, .install, .module besides the .php). Not sure if there's a way to customize the files that should be read somewhere.
There's also the convention by names (hooks). For instance Drupal has the hook_form_alter or hook_form_FORM_ID_alter() which get called by functions such as module_invoke_all or drupal_alter.
Proposed solution
Provide a way to extend the file extension types that are read per code language.
Alternatives considered
No response
Confirmations
What problem does this solve?
Right now PHP support only seems to look for files with PHP extension.
We are working on an old codebase that are evaluating to migrate (Drupal 6 to Drupal 11).
But there are different extensions that Drupal 6 use (
.inc,.install,.modulebesides the .php). Not sure if there's a way to customize the files that should be read somewhere.There's also the convention by names (hooks). For instance Drupal has the
hook_form_alterorhook_form_FORM_ID_alter()which get called by functions such asmodule_invoke_allordrupal_alter.Proposed solution
Provide a way to extend the file extension types that are read per code language.
Alternatives considered
No response
Confirmations