You are here

public function TranslatorRejectDataInterface::rejectDataItem in Translation Management Tool 8

Reject one single data item.

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

Parameters

$job_item: The job item to which the rejected data item belongs.

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

Return value

TRUE if the reject was succesfull, else FALSE. In case of an error, it is the responsibility of the translator to provide informations about the faliure.

1 method overrides TranslatorRejectDataInterface::rejectDataItem()
TestTranslator::rejectDataItem in tmgmt_test/src/Plugin/tmgmt/Translator/TestTranslator.php
Reject one single data item.

File

src/TranslatorRejectDataInterface.php, line 33

Class

TranslatorRejectDataInterface
Handle reject on data item level.

Namespace

Drupal\tmgmt

Code

public function rejectDataItem(JobItemInterface $job_item, array $key, array $values = NULL);