You are here

protected function FlexiformFormEntityBase::doSave in Flexiform 8

Perform the save on the entity.

Parameters

\Drupal\Core\Entity\EntityInterface $entity: The entity to save.

Throws

\Drupal\Core\Entity\EntityStorageException Errors during the entity save.

2 calls to FlexiformFormEntityBase::doSave()
FlexiformFormEntityBase::saveEntity in src/FormEntity/FlexiformFormEntityBase.php
Save the entity.
FlexiformFormEntityTypedDataReferencedEntity::doSave in src/Plugin/FlexiformFormEntity/FlexiformFormEntityTypedDataReferencedEntity.php
Perform the save on the entity.
1 method overrides FlexiformFormEntityBase::doSave()
FlexiformFormEntityTypedDataReferencedEntity::doSave in src/Plugin/FlexiformFormEntity/FlexiformFormEntityTypedDataReferencedEntity.php
Perform the save on the entity.

File

src/FormEntity/FlexiformFormEntityBase.php, line 143

Class

FlexiformFormEntityBase
Provides the base form entity plugin.

Namespace

Drupal\flexiform\FormEntity

Code

protected function doSave(EntityInterface $entity) {
  $entity
    ->save();
}