You are here

protected function MerciItemProcessor::newEntity in MERCI (Manage Equipment Reservations, Checkout and Inventory) 7.2

Creates a new node in memory and returns it.

File

modules/merci_import/MerciItemProcessor.inc, line 25
Class definition of FeedsNodeProcessor.

Class

MerciItemProcessor
Creates nodes from feed items.

Code

protected function newEntity(FeedsSource $source) {
  $node = parent::newEntity($source);
  $node->merci_sub_type = MERCI_SUB_TYPE_ITEM;
  return $node;
}