Problem/Motivation

The module requires Drupal 11, but apart from OOP hooks and entity type attributes it only uses APIs available in Drupal 10.3+.

Proposed resolution

  • Allow ^10.3 || ^11 in info.yml and composer.json.
  • Add #[LegacyHook] procedural bridges for the OOP hook implementations and register the hook classes as services.
  • Add a @ConfigEntityType annotation alongside the attribute (ai_providers_api only).
  • Test the previous major on GitLab CI (OPT_IN_TEST_PREVIOUS_MAJOR), running plain phpunit on that job.
Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

graber created an issue. See original summary.

graber’s picture

Status: Active » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.