You are here

public function Importer::__construct in Feeds Paragraphs 8

File

src/Importer.php, line 77

Class

Importer

Namespace

Drupal\feeds_para_mapper

Code

public function __construct(EntityTypeManagerInterface $entity_type_manager, EntityFieldManagerInterface $field_manager, Mapper $mapper) {
  $this->language = LanguageInterface::LANGCODE_DEFAULT;
  $this->field_manager = $field_manager;
  $this->mapper = $mapper;
  try {
    $this->paragraph_storage = $entity_type_manager
      ->getStorage('paragraph');
  } catch (\Exception $e) {
    throw $e;
  }
}