You are here

public function InlineFormInterface::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.

1 method overrides InlineFormInterface::save()
EntityInlineForm::save in src/Form/EntityInlineForm.php
Saves the given entity.

File

src/InlineFormInterface.php, line 133

Class

InlineFormInterface
Defines the interface for inline form handlers.

Namespace

Drupal\inline_entity_form

Code

public function save(EntityInterface $entity);