You are here

public function Job::acceptTranslation in Translation Management Tool 8

Propagates the returned job item translations to the sources.

Return value

bool TRUE if we were able to propagate the translated data, FALSE otherwise.

Overrides JobInterface::acceptTranslation

File

src/Entity/Job.php, line 893

Class

Job
Entity class for the tmgmt_job entity.

Namespace

Drupal\tmgmt\Entity

Code

public function acceptTranslation() {
  foreach ($this
    ->getItems() as $item) {
    $item
      ->acceptTranslation();
  }
}