protected function WebformSubmissionStorage::doPreSave in Webform 6.x
Same name and namespace in other branches
- 8.5 src/WebformSubmissionStorage.php \Drupal\webform\WebformSubmissionStorage::doPreSave()
Performs presave entity processing.
Parameters
\Drupal\Core\Entity\EntityInterface $entity: The saved entity.
Return value
int|string The processed entity identifier.
Throws
\Drupal\Core\Entity\EntityStorageException If the entity identifier is invalid.
Overrides ContentEntityStorageBase::doPreSave
File
- src/
WebformSubmissionStorage.php, line 961
Class
- WebformSubmissionStorage
- Defines the webform submission storage.
Namespace
Drupal\webformCode
protected function doPreSave(EntityInterface $entity) {
/** @var \Drupal\webform\WebformSubmissionInterface $entity */
$id = parent::doPreSave($entity);
$this
->invokeWebformElements('preSave', $entity);
$this
->invokeWebformHandlers('preSave', $entity);
return $id;
}