You are here

tmgmt_smartling_test_alter_filename.module in TMGMT Translator Smartling 8.3

Contains hook implementation for testing purposes.

File

modules/tmgmt_smartling_test/modules/tmgmt_smartling_test_alter_filename/tmgmt_smartling_test_alter_filename.module
View source
<?php

/**
 * @file
 * Contains hook implementation for testing purposes.
 */
use Drupal\tmgmt\JobInterface;

/**
 * Alter translation file name.
 *
 * @param string $name
 * @param JobInterface $job
 */
function tmgmt_smartling_test_alter_filename_tmgmt_smartling_filename_alter(&$name, JobInterface $job) {
  $name = 'TEST_job_id_' . $job
    ->id();
}

/**
 * Implements hook_tmgmt_smartling_bucket_job_name_alter().
 */
function tmgmt_smartling_test_alter_filename_tmgmt_smartling_bucket_job_name_alter(&$name) {
  $name = 'Test bucket job name';
}