You are here

function tmgmt_smartling_tmgmt_translator_update in TMGMT Translator Smartling 8.4

Same name and namespace in other branches
  1. 8.3 tmgmt_smartling.module \tmgmt_smartling_tmgmt_translator_update()

File

./tmgmt_smartling.module, line 962
Contains

Code

function tmgmt_smartling_tmgmt_translator_update(Translator $translator) {
  if ($translator
    ->getPluginId() != 'smartling') {
    return;
  }
  $plugin = $translator
    ->getPlugin();
  $api_wrapper = $plugin
    ->getApiWrapper($translator
    ->getSettings());
  $api_wrapper
    ->createAuditLogRecord(NULL, $translator, Drupal::currentUser(), CreateRecordParameters::ACTION_TYPE_UPDATE_SETTINGS);
}