You are here

function lingotek_test_install in Lingotek Translation 8

Same name and namespace in other branches
  1. 8.2 tests/modules/lingotek_test/lingotek_test.install \lingotek_test_install()
  2. 3.0.x tests/modules/lingotek_test/lingotek_test.install \lingotek_test_install()
  3. 3.1.x tests/modules/lingotek_test/lingotek_test.install \lingotek_test_install()
  4. 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 6

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('default.workflow', 'test_workflow');
  $config
    ->save();
}