You are here

public function TMGMTI18nStringSourcePluginController::getUri in Translation Management Tool 7

Returns the Uri for this job item.

Parameters

TMGMTJobItem $job_item: The job item entity.

Overrides TMGMTDefaultSourcePluginController::getUri

See also

entity_uri()

File

sources/i18n_string/tmgmt_i18n_string.plugin.inc, line 94
Provides the i18n string source controller.

Class

TMGMTI18nStringSourcePluginController
Translation plugin controller for i18n strings.

Code

public function getUri(TMGMTJobItem $job_item) {
  if ($wrapper = $this
    ->getI18nObjectWrapper($job_item)) {
    return array(
      'path' => $wrapper
        ->get_path(),
      'options' => array(),
    );
  }
}