Skip to content
Snippets Groups Projects
Verified Commit a3a637ed authored by Lee Rowlands's avatar Lee Rowlands
Browse files

Issue #3445791 by balsama, phenaproxima: Language module...

Issue #3445791 by balsama, phenaproxima: 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

(cherry picked from commit b4f1d1a3)
parent 9c5eecad
Branches
Tags
6 merge requests!11958Issue #3490507 by alexpott, smustgrave: Fix bogus mocking in...,!11769Issue #3517987: Add option to contextual filters to encode slashes in query parameter.,!11185Issue #3477324 by andypost, alexpott: Fix usage of str_getcsv() and fgetcsv() for PHP 8.4,!9944Issue #3483353: Consider making the createCopy config action optionally fail...,!8325Update file Sort.php,!8095Expose document root on install
Pipeline #167273 canceled
......@@ -298,10 +298,10 @@ function language_modules_installed($modules, $is_syncing) {
}
if (!in_array('language', $modules)) {
if (InstallerKernel::installationAttempted()) {
if (InstallerKernel::installationAttempted() && $profile = \Drupal::installProfile()) {
// If the install profile provides its own language.types configuration do
// not overwrite it.
$profile_directory = \Drupal::service('extension.list.profile')->getPath(\Drupal::installProfile());
$profile_directory = \Drupal::service('extension.list.profile')->getPath($profile);
$profile_storages = [
new FileStorage($profile_directory . '/' . InstallStorage::CONFIG_INSTALL_DIRECTORY),
new FileStorage($profile_directory . '/' . InstallStorage::CONFIG_OPTIONAL_DIRECTORY),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment