You are here

lingotek_test.install in Lingotek Translation 8

File

tests/modules/lingotek_test/lingotek_test.install
View source
<?php

/**
 * Implements hook_install().
 */
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();
}

Functions

Namesort descending Description
lingotek_test_install Implements hook_install().