You are here

function ContentExportController::getNodeDataList in Content Export CSV 8

* Collects Node Data

1 call to ContentExportController::getNodeDataList()
ContentExportController::getNodeCsvData in src/Controller/ContentExportController.php
* Get Node Data in CSV Format

File

src/Controller/ContentExportController.php, line 35

Class

ContentExportController

Namespace

Drupal\content_export_csv\Controller

Code

function getNodeDataList($entityIds, $nodeType) {
  $nodeData = Node::loadMultiple($entityIds);
  foreach ($nodeData as $nodeDataEach) {
    $nodeCsvData[] = implode(',', self::getNodeData($nodeDataEach, $nodeType));
  }
  return $nodeCsvData;
}