Language module hook_modules_installed should account for sites with no installation profile now that it is possible to install a site from a recipe.

Created on 7 May 2024, 7 months ago
Updated 22 May 2024, 7 months ago

Problem/Motivation

Now that #3439702: Allow CLI install of Drupal using recipes β†’ has landed, it is possible for `\Drupal::installProfile()` to return false.

Steps to reproduce

We can no longer assume that `\Drupal::installProfile()` will return a valid extensions that can then be passed along to things like XXX->getPath() - as in the Language module's `hook_modules_installed()`

Proposed resolution

Early return out of the first if statement in `hook_modules_installed` if `\Drupal::installProfile()` is false.

Remaining tasks

Patch

User interface changes

none

API changes

none

Data model changes

none

Release notes snippet

n/a

πŸ› Bug report
Status

Fixed

Version

10.3 ✨

Component
Language systemΒ  β†’

Last updated 1 day ago

  • Maintained by
  • πŸ‡©πŸ‡ͺGermany @sun
Created by

πŸ‡ΊπŸ‡ΈUnited States balsama boston

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024