You are here

function ContentExportController::getNodeIds in Content Export CSV 8

* Gets NodesIds based on Node Type

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

File

src/Controller/ContentExportController.php, line 24

Class

ContentExportController

Namespace

Drupal\content_export_csv\Controller

Code

function getNodeIds($nodeType) {
  $entityQuery = \Drupal::entityQuery('node');
  $entityQuery
    ->condition('status', 1);
  $entityQuery
    ->condition('type', $nodeType);
  $entityIds = $entityQuery
    ->execute();
  return $entityIds;
}