function wingsuit_companion_update_8001 in Gin Layout Builder 8.2
Install Wingsuit UI Patterns sub module.
File
- ./
wingsuit_companion.install, line 11 - Provides install/uninstall for wingsuit_companion module.
Code
function wingsuit_companion_update_8001() {
\Drupal::service('module_installer')
->install([
'wingsuit_ui_patterns',
]);
$config_factory = \Drupal::configFactory();
$config = $config_factory
->get('wingsuit_companion.config');
$dist_path = $config
->get('dist_path');
$absolute_path = _wingsuit_companion_canonicalize(\Drupal::service('theme_handler')
->getTheme('wingsuit')
->getPath() . $dist_path);
$config_factory
->getEditable('wingsuit_companion.config')
->set('dist_path', $absolute_path)
->save();
}