function hook_tmgmt_smartling_context_url_alter in TMGMT Translator Smartling 8
Same name and namespace in other branches
- 8.4 tmgmt_smartling.api.php \hook_tmgmt_smartling_context_url_alter()
- 8.2 tmgmt_smartling.api.php \hook_tmgmt_smartling_context_url_alter()
- 8.3 tmgmt_smartling.api.php \hook_tmgmt_smartling_context_url_alter()
Alter entity context url.
Parameters
string $url:
\Drupal\tmgmt\JobItemInterface $job_item:
1 invocation of hook_tmgmt_smartling_context_url_alter()
- RequestTranslationSubscriber::onUploadRequest in src/
EventSubscriber/ RequestTranslationSubscriber.php - Code that should be triggered on event specified
File
- ./
tmgmt_smartling.api.php, line 16 - Hooks provided by the TMGMT Smartling module.
Code
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;
}