You are here

protected function TmgmtExtensionSuitTestBase::translateJobItems in TMGMT Extension Suite 8.3

Same name and namespace in other branches
  1. 8.2 tests/src/Functional/TmgmtExtensionSuitTestBase.php \Drupal\Tests\tmgmt_extension_suit\Functional\TmgmtExtensionSuitTestBase::translateJobItems()

Translates job items (marks as "needs review").

Parameters

array $jobItemIds: Job item ids.

File

tests/src/Functional/TmgmtExtensionSuitTestBase.php, line 167

Class

TmgmtExtensionSuitTestBase
Basic class for tmgmt extension module.

Namespace

Drupal\Tests\tmgmt_extension_suit\Functional

Code

protected function translateJobItems(array $jobItemIds) {
  foreach ($jobItemIds as $jobItemId) {
    $jobItem = JobItem::load($jobItemId);
    $jobItem
      ->setState(JobItem::STATE_REVIEW);
    $jobItem
      ->save();
  }
}