Skip to content
Snippets Groups Projects
Commit 5d43f12d authored by christian.wiedemann's avatar christian.wiedemann
Browse files

fix: Set only dist_path for empty configuration

parent 3e4a85e2
No related branches found
No related tags found
No related merge requests found
......@@ -50,6 +50,8 @@ function _wingsuit_companion_canonicalize($path) {
function wingsuit_companion_install() {
$config_factory = \Drupal::configFactory();
$config = $config_factory->getEditable('wingsuit_companion.config');
$config->set('dist_path', 'themes/custom/wingsuit/dist/app-drupal');
$config->save(TRUE);
}
\ No newline at end of file
if (empty($config->get('dist_path'))) {
$config->set('dist_path', 'themes/custom/wingsuit/dist/app-drupal');
$config->save(TRUE);
}
}
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