public function Job::acceptTranslation

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 906

Class

Job
Entity class for the tmgmt_job entity.

Namespace

Drupal\tmgmt\Entity

Code

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