protected function ExportConfirmForm::getEntities in Content Synchronizer 8
Same name and namespace in other branches
- 8.2 src/Form/ExportConfirmForm.php \Drupal\content_synchronizer\Form\ExportConfirmForm::getEntities()
- 3.x src/Form/ExportConfirmForm.php \Drupal\content_synchronizer\Form\ExportConfirmForm::getEntities()
Return the list of entities to export.
Return value
array|\Drupal\Core\Entity\EntityInterface[] The entities.
2 calls to ExportConfirmForm::getEntities()
- ExportConfirmForm::onAddToExport in src/
Form/ ExportConfirmForm.php - Add entity to an existing entity export.
- ExportConfirmForm::onQuickExport in src/
Form/ ExportConfirmForm.php - Action on quick export submit action.
File
- src/
Form/ ExportConfirmForm.php, line 206
Class
- ExportConfirmForm
- Class ExportConfirmForm.
Namespace
Drupal\content_synchronizer\FormCode
protected function getEntities() {
$entities = [];
foreach ($this
->getTmpStoredData('entities') as $entityTypeId => $entitiesIds) {
$entities += \Drupal::entityTypeManager()
->getStorage($entityTypeId)
->loadMultiple($entitiesIds);
}
return $entities;
}