You are here

public function FlexiformFormEntityBase::saveEntity in Flexiform 7

Save the entity upon submission of the form.

Parameters

$entity: The entity object being saved.

Overrides FlexiformFormEntityInterface::saveEntity

1 call to FlexiformFormEntityBase::saveEntity()
FlexifromFormEntityNewReply::saveEntity in includes/form_entity/reply.form_entity.inc
Save the entity upon submission of the form.
5 methods override FlexiformFormEntityBase::saveEntity()
FlexiformFormEntityEntityReference::saveEntity in includes/form_entity/entityreference.form_entity.inc
Save the entity upon submission of the form.
FlexiformFormEntityLegacy::saveEntity in includes/form_entity/legacy.form_entity.inc
Save the entity upon submission of the form.
FlexiformFormEntityNewCommerceLineItem::saveEntity in includes/form_entity/commerce_line_item.form_entity.inc
Save the entity upon submission of the form.
FlexiformFormEntityPartyDataSet::saveEntity in includes/form_entity/party_data_set.form_entity.inc
Save the entity upon submission of the form.
FlexifromFormEntityNewReply::saveEntity in includes/form_entity/reply.form_entity.inc
Save the entity upon submission of the form.

File

includes/form_entity/base.form_entity.inc, line 116
Contains class for a basic entity getter.

Class

FlexiformFormEntityBase
Default Form Entity Class for Managing a form Entity.

Code

public function saveEntity($entity) {
  entity_save($this->entity_type, $entity);
}