You are here

protected function LingotekJobManagementContentEntitiesForm::getRows in Lingotek Translation 3.4.x

Same name and namespace in other branches
  1. 8.2 src/Form/LingotekJobManagementContentEntitiesForm.php \Drupal\lingotek\Form\LingotekJobManagementContentEntitiesForm::getRows()
  2. 4.0.x src/Form/LingotekJobManagementContentEntitiesForm.php \Drupal\lingotek\Form\LingotekJobManagementContentEntitiesForm::getRows()
  3. 3.0.x src/Form/LingotekJobManagementContentEntitiesForm.php \Drupal\lingotek\Form\LingotekJobManagementContentEntitiesForm::getRows()
  4. 3.1.x src/Form/LingotekJobManagementContentEntitiesForm.php \Drupal\lingotek\Form\LingotekJobManagementContentEntitiesForm::getRows()
  5. 3.2.x src/Form/LingotekJobManagementContentEntitiesForm.php \Drupal\lingotek\Form\LingotekJobManagementContentEntitiesForm::getRows()
  6. 3.3.x src/Form/LingotekJobManagementContentEntitiesForm.php \Drupal\lingotek\Form\LingotekJobManagementContentEntitiesForm::getRows()
  7. 3.5.x src/Form/LingotekJobManagementContentEntitiesForm.php \Drupal\lingotek\Form\LingotekJobManagementContentEntitiesForm::getRows()
  8. 3.6.x src/Form/LingotekJobManagementContentEntitiesForm.php \Drupal\lingotek\Form\LingotekJobManagementContentEntitiesForm::getRows()
  9. 3.7.x src/Form/LingotekJobManagementContentEntitiesForm.php \Drupal\lingotek\Form\LingotekJobManagementContentEntitiesForm::getRows()
  10. 3.8.x src/Form/LingotekJobManagementContentEntitiesForm.php \Drupal\lingotek\Form\LingotekJobManagementContentEntitiesForm::getRows()

Gets the rows for rendering based on the passed entity list.

Parameters

\Drupal\Core\Entity\EntityInterface[] $entity_list:

Return value

array A render array.

Overrides LingotekManagementFormBase::getRows

File

src/Form/LingotekJobManagementContentEntitiesForm.php, line 162

Class

LingotekJobManagementContentEntitiesForm
Form for bulk management of job filtered content.

Namespace

Drupal\lingotek\Form

Code

protected function getRows($entity_list) {
  $counter = 1;
  $rows = [];
  foreach ($entity_list as $entity_type_id => $entities) {
    foreach ($entities as $entity_id => $entity) {
      $rowId = (string) $entity
        ->getEntityTypeId() . ':' . (string) $entity
        ->id();
      $rows[$rowId] = $this
        ->getRow($entity);
      $counter += 1;
    }
  }
  return $rows;
}