Skip to content

refactor: use RequirementSeverity enum, drop Drupal 10 support#46

Open
jjroelofs wants to merge 1 commit into
1.xfrom
chore/remove-moderation-update-docs
Open

refactor: use RequirementSeverity enum, drop Drupal 10 support#46
jjroelofs wants to merge 1 commit into
1.xfrom
chore/remove-moderation-update-docs

Conversation

@jjroelofs

Copy link
Copy Markdown
Contributor

Summary

  • Replace deprecated REQUIREMENT_* constants with the autoloaded RequirementSeverity enum (added in Drupal 11.2, required for Drupal 12)
  • Remove include_once of install.inc from the service class; the enum is autoloaded so no manual include is needed
  • Update core_version_requirement from ^10.3 || ^11 to ^11.2

Test plan

  • Verify the settings page at /admin/config/content/ckeditor-ai-agent loads without errors and shows the active AI provider
  • Verify the Drupal status report at /admin/reports/status shows the CKEditor AI Agent requirement check
  • Verify module installation on a fresh Drupal 11.2+ site shows the provider warning if no provider is configured

Replace deprecated REQUIREMENT_* constants with the autoloaded
RequirementSeverity enum introduced in Drupal 11.2. This removes
the include_once of install.inc from the service class.

Update core_version_requirement from ^10.3 || ^11 to ^11.2.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant