Drupal Contribution Notes, 17–23 November 2026: Drupal 12, Azure AI Search and Australian AI Governance

Drupal Contribution Notes, 17–23 November 2026: Drupal 12, Azure AI Search and Australian AI Governance

Most of my Drupal contribution this week went into getting modules ready for Drupal 12, which is now in beta, and into reviewing other people's fixes. Here is what shipped, what got merged and what comes next.

Digital Locker 2.1.1: Drupal 12 support

Last week Digital Locker 2.1.0 added sign-in with DigiLocker. This week 2.1.1 added Drupal 12 support (#3287000). Allowing ^12 in the info files was the easy part. Getting the Drupal 12 test jobs to pass taught me a few things that apply to most contrib modules:

  • Calls deprecated in Drupal 11.5. user_login_finalize() and module_set_weight() are deprecated. The new APIs, LoginFinalizer and ModuleWeight, don't exist in 11.2 to 11.4. DeprecationHelper::backwardsCompatibleCall() lets one codebase call the right API on each version, and PHPStan accepts it.
  • PHPUnit attributes are required. On Drupal 12, a test without a #[Group] attribute stops the whole test run. Old @group and @dataProvider annotations have to become attributes.
  • Mocks without expectations are reported. PHPUnit 12 reports a mock that has no expectations, so use createStub() when you only need return values.
  • Deprecations from dependencies. Since Drupal 11.5, CI reads deprecations to ignore from a .deprecation-ignore.txt file, which you point to with DRUPAL_DEPRECATION_FILTER_CONFIG. Digital Locker uses it for deprecations raised by the TCPDF library, so that they don't fail the module's own tests.

The Digital Locker project also has a new default branch, 2.1.x.

Azure provider: AI Search indexing works again

On the Azure AI provider, I reviewed and merged a fix from Hans Ceelen, with a suggestion from Dan Friedman (#3618016). When the provider embedded several texts in one request, it ignored the model's endpoint and key and sent the request to OpenAI without a key. That broke AI Search indexing for anyone using Azure, because any item split into more than one chunk uses that batch request.

The review found a second problem: batch requests did not send the model's configured dimensions. With a model set to, say, 1024 dimensions, single items would get 1024-long vectors and batched items 3072-long ones, which no longer match the search index. Both are fixed in 1.2.x.

AI Context: shared test helpers for integrating modules

A few weeks ago I suggested that AI Context (the Context Control Center) should provide test helpers for modules that integrate with it. Every integrator was finding the same setup by trial and error. Pravesh Poonia built them (#3586673), and I tried them in the AI Empathy integration:

  • The test setup went from 142 lines to 56.
  • The new assertion requires each selection test to name both an item that must be included and one that must be excluded. It caught one of my own tests, which only checked exclusions and so would have passed on an empty result.
  • Testing also showed that every integrating test now got a Drupal 11.2 deprecation from AI Context's usage view. I reported it (#3586764). Abhinav Jha fixed it, and Kristen Pol merged it the next day for 1.0.0-rc3.

The helpers are planned for AI Context 1.1.0-alpha1.

AI Empathy: Australian AI governance policies merged

Earlier this month I asked for feedback on adding Australian AI governance frameworks to AI Empathy. Nobody asked for changes, so the change is now merged into the 1.6.x branch (#3616692) and will ship in 1.6.0. AI responses can now be scored against Australia's AI Ethics Principles, the National AI Centre's Guidance for AI Adoption, and the Digital Transformation Agency's policy for the responsible use of AI in government. If you work with these frameworks and the guidance needs correcting, or you would like a state framework such as the NSW AI Assessment Framework added, please open an issue.

What comes next

I ran the Drupal 12 test jobs on the other modules I maintain and wrote up what is left as a plan for each one:

  • Digital Locker (plan): documents fetched from DigiLocker into a file field should be saved where the field says. Today they go to the site's default file storage, which is usually public. If you use the Requester, make sure your site's default file storage is private until this is fixed. The plan also moves the requester and issuer secrets out of configuration, checks that fetched files really are PDFs, and adds tests.
  • AI Empathy (plan): the Drupal 12 tests can't run yet, because AI Context doesn't support Drupal 12 yet. CI also hides deprecations, and the scenario packs have no tests. The goal is 1.6.0.
  • PWA Firebase Notification (plan): every test already passes on Drupal 12. What's left before a stable 2.0.0 is an ignore list for deprecations raised by core and ECA, and a test for the Rules action.

Thank you to Hans Ceelen, Dan Friedman, Pravesh Poonia, Abhinav Jha and Kristen Pol for the fixes, reviews and quick merges this week. If one of these plans covers something you need, comment on the issue or pick up a child issue. They are written so that anyone can start on them.

If your team is preparing Drupal sites or modules for Drupal 12, or building with Drupal AI, I am happy to help, and to connect you with my team at Axelerant to help you reach your goal. Get in touch.