function hook_tmgmt_smartling_directives_alter in TMGMT Translator Smartling 8.4
Same name and namespace in other branches
- 8.3 tmgmt_smartling.api.php \hook_tmgmt_smartling_directives_alter()
Alter directives for the file being uploaded.
Parameters
array $directives:
1 invocation of hook_tmgmt_smartling_directives_alter()
- SmartlingTranslator::addSmartlingDirectives in src/
Plugin/ tmgmt/ Translator/ SmartlingTranslator.php - Adds smartling directives to upload parameters.
File
- ./
tmgmt_smartling.api.php, line 51 - Hooks provided by the TMGMT Smartling module.
Code
function hook_tmgmt_smartling_directives_alter(array &$directives) {
$directives['smartling.force_inline_for_tags'] = 'icon';
}