public function EntityShareEntityImport::execute in Entity Share 7
Generate the import.
Return value
int Imported Entity Id.
Overrides EntityShareEntityAbstract::execute
File
- includes/
entity_share.entity.import.inc, line 21 - Class for handling Entity Import.
Class
- EntityShareEntityImport
- Manage general entity import.
Code
public function execute() {
$this
->contentFieldWalk();
$this
->saveEntity($this
->getEntity());
list($entity_id) = entity_extract_ids($this
->getEntityType(), $this
->getEntity());
return $entity_id;
}