You are here

public function TMGMTJobItem::getSourceController in Translation Management Tool 7

Returns the plugin controller of the configured plugin.

Return value

TMGMTSourcePluginControllerInterface

6 calls to TMGMTJobItem::getSourceController()
TMGMTJobItem::acceptTranslation in entity/tmgmt.entity.job_item.inc
Propagates the returned job item translations to the sources.
TMGMTJobItem::defaultLabel in entity/tmgmt.entity.job_item.inc
Defines the entity label if the 'entity_class_label' callback is used.
TMGMTJobItem::getSourceData in entity/tmgmt.entity.job_item.inc
Loads the structured source data array from the source.
TMGMTJobItem::getSourceLabel in entity/tmgmt.entity.job_item.inc
Retrieves the label of the source object via the source controller.
TMGMTJobItem::getSourceType in entity/tmgmt.entity.job_item.inc
Returns the user readable type of job item.

... See full list

File

entity/tmgmt.entity.job_item.inc, line 345

Class

TMGMTJobItem
Entity class for the tmgmt_job entity.

Code

public function getSourceController() {
  if (!empty($this->plugin)) {
    return tmgmt_source_plugin_controller($this->plugin);
  }
  return FALSE;
}