tmgmt_smartling.api.php in TMGMT Translator Smartling 8
Same filename and directory in other branches
Hooks provided by the TMGMT Smartling module.
File
tmgmt_smartling.api.phpView source
<?php
/**
* @file
* Hooks provided by the TMGMT Smartling module.
*/
use Drupal\tmgmt\JobItemInterface;
/**
* Alter entity context url.
*
* @param string $url
* @param \Drupal\tmgmt\JobItemInterface $job_item
*/
function hook_tmgmt_smartling_context_url_alter(&$url, JobItemInterface $job_item) {
// Set NULL to avoid creating context for a content from $job_item.
$url = NULL;
}
Functions
Name | Description |
---|---|
hook_tmgmt_smartling_context_url_alter | Alter entity context url. |