You are here

tmgmt_smartling.api.php in TMGMT Translator Smartling 8

Hooks provided by the TMGMT Smartling module.

File

tmgmt_smartling.api.php
View 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

Namesort descending Description
hook_tmgmt_smartling_context_url_alter Alter entity context url.