Skip to content
Snippets Groups Projects
Commit b296d2d9 authored by Dieter Holvoet's avatar Dieter Holvoet Committed by Sascha Grossenbacher
Browse files

Issue #3419799 by DieterHolvoet: Uninstall of Library is not clean / Cannot reinstall

parent 06eff5fa
No related branches found
No related tags found
1 merge request!125Add the paragraphs_library module as dependency to the from_library paragraphs type
Pipeline #328625 failed
langcode: en
status: true
dependencies: { }
dependencies:
enforced:
module:
- paragraphs_library
id: from_library
label: 'From library'
behavior_plugins: { }
......@@ -370,3 +370,19 @@ function paragraphs_library_update_8102() {
->save();
}
}
/**
* Add the paragraphs_library module as dependency to the from_library paragraphs type.
*/
function paragraphs_library_update_8103() {
$config = \Drupal::configFactory()->getEditable('paragraphs.paragraphs_type.from_library');
if ($config->isNew()) {
return;
}
$dependencies = $config->get('dependencies') ?? [];
$dependencies['enforced']['module'][] = 'paragraphs_library';
$config->set('dependencies', $dependencies);
$config->save();
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment