You are here

public function GetServices::snpGetFieldsDefinition in Simple Node Importer 8

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

File

src/Services/GetServices.php, line 227

Class

GetServices

Namespace

Drupal\simple_node_importer\Services

Code

public function snpGetFieldsDefinition($entity_type = 'node', $content_type = '') {
  $entityManager = \Drupal::service('entity_field.manager');
  $fieldsManager = $entityManager
    ->getFieldDefinitions($entity_type, $content_type);
  return $fieldsManager;
}