You are here

public function TranslatorPluginBase::acceptedDataItem in Translation Management Tool 8

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 TranslatorPluginInterface::acceptedDataItem

File

src/TranslatorPluginBase.php, line 124

Class

TranslatorPluginBase
Default controller class for service plugins.

Namespace

Drupal\tmgmt

Code

public function acceptedDataItem(JobItemInterface $job_item, array $key) {
  return TRUE;
}