tmgmt_test.plugin.html_source.inc 577 B

1234567891011121314151617181920212223
  1. <?php
  2. /**
  3. * @file
  4. * Contains the test source plugin with html.
  5. */
  6. class TMGMTTestHTMLSourcePluginController extends TMGMTTestSourcePluginController {
  7. /**
  8. * {@inheritdoc}
  9. */
  10. public function getData(TMGMTJobItem $job_item) {
  11. return array(
  12. 'dummy' => array(
  13. 'deep_nesting' => array(
  14. '#text' => file_get_contents(drupal_get_path('module', 'tmgmt') . '/tests/testing_html/sample.html'),
  15. '#label' => 'Label for job item with type ' . $job_item->item_type . ' and id ' . $job_item->item_id . '.',
  16. ),
  17. ),
  18. );
  19. }
  20. }