public function EntityInlineEntityFormController::save in Inline Entity Form 7
Permanently saves the given entity.
Parameters
$entity: The entity to save.
array $context: Available keys:
- parent_entity_type: The type of the parent entity.
- parent_entity: The parent entity.
2 methods override EntityInlineEntityFormController::save()
File
- includes/
entity.inline_entity_form.inc, line 433 - Defines the base inline entity form controller.
Class
- EntityInlineEntityFormController
- @file Defines the base inline entity form controller.
Code
public function save($entity, $context) {
entity_save($this->entityType, $entity);
}