You are here

function tmgmt_test_tmgmt_translator_info_alter in Translation Management Tool 8

Implements hook_tmgmt_translator_info_alter().

File

tmgmt_test/tmgmt_test.module, line 13
Module file of the translation management test module.

Code

function tmgmt_test_tmgmt_translator_info_alter(&$definitions) {
  $map = \Drupal::state()
    ->get('tmgmt_test_translator_map_languages');
  $definitions['test_translator']['map_remote_languages'] = $map !== NULL ? $map : TRUE;
}