Skip to content

PHP: Better support for older drupal codebases. #778

Description

@AleMadLei

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

  • I searched existing issues and this is not a duplicate.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions