Returns an array with the data structured for translation.
\Drupal\tmgmt\JobItemInterface $job_item: The job item entity.
Overrides TestSource::getData
JobItem::getData()
public function getData(JobItemInterface $job_item) {
return array(
'dummy' => array(
'deep_nesting' => array(
'#text' => file_get_contents(\Drupal::service('extension.list.module')
->getPath('tmgmt') . '/tests/testing_html/sample.html'),
'#label' => 'Label for job item with type ' . $job_item
->getItemType() . ' and id ' . $job_item
->getItemId() . '.',
),
),
);
}