function lingotek_test_install in Lingotek Translation 3.1.x
Same name and namespace in other branches
- 8 tests/modules/lingotek_test/lingotek_test.install \lingotek_test_install()
- 8.2 tests/modules/lingotek_test/lingotek_test.install \lingotek_test_install()
- 3.0.x tests/modules/lingotek_test/lingotek_test.install \lingotek_test_install()
- 3.2.x tests/modules/lingotek_test/lingotek_test.install \lingotek_test_install()
Implements hook_install().
File
- tests/
modules/ lingotek_test/ lingotek_test.install, line 11 - Install, update and uninstall functions for the lingotek_test module.
Code
function lingotek_test_install() {
$config = \Drupal::configFactory()
->getEditable('lingotek.settings');
$config
->set('account.resources.community', [
'test_community' => 'test_community',
]);
$config
->set('account.resources.project', [
'test_project' => 'test_project',
'another_project' => 'another_project',
]);
$config
->set('account.resources.vault', [
'test_vault' => 'test_vault',
'another_vault' => 'another_vault',
]);
$config
->set('account.resources.workflow', [
'test_workflow' => 'test_workflow',
'another_workflow' => 'another_workflow',
]);
$config
->set('account.resources.filter', [
'test_filter' => 'test_filter',
'another_filter' => 'another_filter',
]);
$config
->set('default.workflow', 'test_workflow');
$config
->save();
}