Issue #3626959 by tbcs: Drupal 12 compatibility.

  • add || ^12 to core_version_requirement in the main module, its four submodules and the test module, and to drupal/core in composer.json
  • replace user_role_grant_permissions(), deprecated in 11.5, with the test trait's grantPermissions() in the three functional tests
  • enable the promoted_content view and rebuild the router in AgentSurfaceTest, because Drupal 12 ships the /node view under that name and disabled
  • add native return types to BundleSignals::id(), label() and calculateDependencies() and to MarkdownRenderer::renderResponse(), which Drupal 12's debug class loader reports
  • ignore the REQUIREMENT_* constants in phpstan, which Drupal 12 removed and the module only reads on cores before 11.2
  • list Drupal 12 in AGENTS.md, the README, the documentation requirements and the .gitlab-ci.yml comment; OPT_IN_TEST_NEXT_MAJOR was already on

I used an LLM in the production of this code. Should be reviewed on Drupal 12 before tagging; Go ahead once the pipeline passes.

Merge request reports

Loading
Loading