public function TMGMTTestHTMLSourcePluginController::getData in Translation Management Tool 7
Returns an array with the data structured for translation.
Parameters
TMGMTJobItem $job_item: The job item entity.
Overrides TMGMTTestSourcePluginController::getData
See also
File
- tests/
tmgmt_test.plugin.html_source.inc, line 13 - Contains the test source plugin with html.
Class
- TMGMTTestHTMLSourcePluginController
- @file Contains the test source plugin with html.
Code
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 . '.',
),
),
);
}