You are here

public function TMGMTDefaultTranslatorPluginController::acceptetDataItem in Translation Management Tool 7

Accept a single data item.

@todo Using job item breaks the current convention which uses jobs.

Parameters

$job_item: The Job item the accepted data item belongs to.

$key: The key of the accepted data item. The key is an array containing the keys of a nested array hierarchy path.

Return value

TRUE if the approving was succesfull, FALSE otherwise. In case of an error, it is the responsibility of the translator to provide informations about the failure by adding a message to the job item.

Overrides TMGMTTranslatorPluginControllerInterface::acceptetDataItem

File

plugin/tmgmt.plugin.translator.inc, line 199
Contains the abstract translator base plugin class.

Class

TMGMTDefaultTranslatorPluginController
Default controller class for service plugins.

Code

public function acceptetDataItem(TMGMTJobItem $job_item, array $key) {
  return TRUE;
}