public function TranslatorPluginInterface::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.
1 method overrides TranslatorPluginInterface::acceptedDataItem()
- TranslatorPluginBase::acceptedDataItem in src/
TranslatorPluginBase.php - Accept a single data item.
File
- src/
TranslatorPluginInterface.php, line 169
Class
- TranslatorPluginInterface
- Interface for service plugin controllers.
Namespace
Drupal\tmgmtCode
public function acceptedDataItem(JobItemInterface $job_item, array $key);