You are here

public function GetServices::snpGetFieldList in Simple Node Importer 8

1 call to GetServices::snpGetFieldList()
GetServices::snpSelectCreateCsv in src/Services/GetServices.php

File

src/Services/GetServices.php, line 121

Class

GetServices

Namespace

Drupal\simple_node_importer\Services

Code

public function snpGetFieldList($entity_type = 'node', $content_type = '', $type = NULL) {
  if (!empty($content_type)) {
    $fieldsManager = $this
      ->snpGetFieldsDefinition($entity_type, $content_type);
    $fieldsArr = $this
      ->snpGetFields($fieldsManager, $type, $entity_type);
    return $fieldsArr;
  }
  else {
    return "";
  }
}