class TMGMTTestHTMLSourcePluginController in Translation Management Tool 7
@file Contains the test source plugin with html.
Hierarchy
- class \TMGMTPluginBase implements TMGMTPluginBaseInterface
Expanded class hierarchy of TMGMTTestHTMLSourcePluginController
1 string reference to 'TMGMTTestHTMLSourcePluginController'
- tmgmt_test_tmgmt_source_plugin_info in tests/
tmgmt_test.module - Implements hook_tmgmt_source_plugin_info().
File
- tests/
tmgmt_test.plugin.html_source.inc, line 8 - Contains the test source plugin with html.
View source
class TMGMTTestHTMLSourcePluginController extends TMGMTTestSourcePluginController {
/**
* {@inheritdoc}
*/
public function getData(TMGMTJobItem $job_item) {
return array(
'dummy' => array(
'deep_nesting' => array(
'#text' => file_get_contents(drupal_get_path('module', 'tmgmt') . '/tests/testing_html/sample.html'),
'#label' => 'Label for job item with type ' . $job_item->item_type . ' and id ' . $job_item->item_id . '.',
),
),
);
}
}