You are here

tmgmt_test.plugin.html_source.inc in Translation Management Tool 7

Contains the test source plugin with html.

File

tests/tmgmt_test.plugin.html_source.inc
View source
<?php

/**
 * @file
 * Contains the test source plugin with html.
 */
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 . '.',
        ),
      ),
    );
  }

}

Classes

Namesort descending Description
TMGMTTestHTMLSourcePluginController @file Contains the test source plugin with html.