function hook_tmgmt_file_format_plugin_info_alter in Translation Management Tool 8
Same name and namespace in other branches
- 7 translators/file/tmgmt_file.api.php \hook_tmgmt_file_format_plugin_info_alter()
Alter file format plugins provided by other modules.
1 invocation of hook_tmgmt_file_format_plugin_info_alter()
- FormatManager::__construct in translators/
tmgmt_file/ src/ Format/ FormatManager.php - Constructs a ConditionManager object.
File
- translators/
tmgmt_file/ tmgmt_file.api.php, line 11
Code
function hook_tmgmt_file_format_plugin_info_alter(&$file_formats) {
// Switch the used HTML plugin controller class.
$file_formats['html']['class'] = '\\Drupal\\mymodule\\DifferentHtmlImplementation';
}