public function EntityInlineForm::save in Inline Entity Form 8
Saves the given entity.
Parameters
\Drupal\Core\Entity\EntityInterface $entity: The entity.
Return value
int Either SAVED_NEW or SAVED_UPDATED, depending on the operation performed.
Overrides InlineFormInterface::save
File
- src/
Form/ EntityInlineForm.php, line 277
Class
- EntityInlineForm
- Generic entity inline form handler.
Namespace
Drupal\inline_entity_form\FormCode
public function save(EntityInterface $entity) {
$entity
->save();
}