function panopoly_core_install in Panopoly Core 8.2
Same name and namespace in other branches
- 7 panopoly_core.install \panopoly_core_install()
Implements hook_install().
File
- ./
panopoly_core.install, line 13
Code
function panopoly_core_install($is_syncing) {
// If we're not being installed as part of a configuration sync, ensure that
// the Pathauto settings are as we would expect them to be.
if (!$is_syncing) {
$config_factory = \Drupal::configFactory();
$pathauto_settings = $config_factory
->getEditable('pathauto.settings');
$pathauto_settings
->set('update_action', 1);
$pathauto_settings
->save();
}
}