You are here

class TMGMTTestHTMLSourcePluginController in Translation Management Tool 7

@file Contains the test source plugin with html.

Hierarchy

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 . '.',
        ),
      ),
    );
  }

}

Members

Namesort descending Modifiers Type Description Overrides
TMGMTDefaultSourcePluginController::getItemTypeLabel public function Returns the label of a source item type. Overrides TMGMTSourcePluginControllerInterface::getItemTypeLabel
TMGMTDefaultSourcePluginController::getItemTypes public function Returns an array of translatable source item types. Overrides TMGMTSourcePluginControllerInterface::getItemTypes
TMGMTDefaultSourcePluginController::getType public function Returns the type of a job item. Overrides TMGMTSourcePluginControllerInterface::getType 4
TMGMTPluginBase::$pluginInfo protected property
TMGMTPluginBase::$pluginType protected property
TMGMTPluginBase::pluginInfo public function Returns the info of the type of the plugin. Overrides TMGMTPluginBaseInterface::pluginInfo
TMGMTPluginBase::pluginType public function Returns the type of the plugin. Overrides TMGMTPluginBaseInterface::pluginType
TMGMTPluginBase::__construct public function Constructor. Overrides TMGMTPluginBaseInterface::__construct
TMGMTTestHTMLSourcePluginController::getData public function Returns an array with the data structured for translation. Overrides TMGMTTestSourcePluginController::getData
TMGMTTestSourcePluginController::getExistingLangCodes public function Gets existing translation language codes of the job item source. Overrides TMGMTDefaultSourcePluginController::getExistingLangCodes
TMGMTTestSourcePluginController::getLabel public function Return a title for this job item. Overrides TMGMTDefaultSourcePluginController::getLabel
TMGMTTestSourcePluginController::getSourceLangCode public function Gets language code of the job item source. Overrides TMGMTSourcePluginControllerInterface::getSourceLangCode
TMGMTTestSourcePluginController::getUri public function Returns the Uri for this job item. Overrides TMGMTDefaultSourcePluginController::getUri
TMGMTTestSourcePluginController::replacePlaceholders protected function Will replace placeholders in the #text offsets.
TMGMTTestSourcePluginController::saveTranslation public function Saves a translation. Overrides TMGMTSourcePluginControllerInterface::saveTranslation