function pathauto_update_8106 in Pathauto 8
Update default configuration for enabled entity types.
File
- ./
pathauto.install, line 274 - Install, update, and uninstall functions for Pathauto.
Code
function pathauto_update_8106() {
$config_factory = \Drupal::configFactory();
$config = $config_factory
->getEditable('pathauto.settings');
$config
->set('enabled_entity_types', [
'user',
]);
$config
->save();
}