panopoly_core.install in Panopoly Core 8.2
Same filename and directory in other branches
File
panopoly_core.installView source
<?php
/**
* @file
* Installation hooks for the panopoly_core module.
*/
declare (strict_types=1);
/**
* Implements hook_install().
*/
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();
}
}
Functions
Name![]() |
Description |
---|---|
panopoly_core_install | Implements hook_install(). |