You are here

lingotek_test.install in Lingotek Translation 3.1.x

Install, update and uninstall functions for the lingotek_test module.

File

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

/**
 * @file
 * Install, update and uninstall functions for the lingotek_test module.
 */

/**
 * 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('account.resources.filter', [
    'test_filter' => 'test_filter',
    'another_filter' => 'another_filter',
  ]);
  $config
    ->set('default.workflow', 'test_workflow');
  $config
    ->save();
}

Functions

Namesort descending Description
lingotek_test_install Implements hook_install().