social_user_export.install in Open Social 8.8
Same filename and directory in other branches
- 8.9 modules/social_features/social_user_export/social_user_export.install
- 10.3.x modules/social_features/social_user_export/social_user_export.install
- 10.0.x modules/social_features/social_user_export/social_user_export.install
- 10.1.x modules/social_features/social_user_export/social_user_export.install
- 10.2.x modules/social_features/social_user_export/social_user_export.install
Install, update and uninstall functions for the social_user_export module.
File
modules/social_features/social_user_export/social_user_export.installView source
<?php
/**
* @file
* Install, update and uninstall functions for the social_user_export module.
*/
/**
* Set the default export plugins normal users can use.
*/
function social_user_export_update_8001() {
$plugins = [
'display_name' => 'display_name',
'user_first_name' => 'user_first_name',
'user_last_name' => 'user_last_name',
];
// Set the default export plugins normal users can use.
$config = \Drupal::getContainer()
->get('config.factory')
->getEditable('social_user_export.settings');
$config
->set('plugins', $plugins)
->save();
}
Functions
Name![]() |
Description |
---|---|
social_user_export_update_8001 | Set the default export plugins normal users can use. |