You are here

public function WebformElementInterface::preSave in Webform 8.5

Same name and namespace in other branches
  1. 6.x src/Plugin/WebformElementInterface.php \Drupal\webform\Plugin\WebformElementInterface::preSave()

Acts on a webform submission element before the presave hook is invoked.

Parameters

array $element: An element.

\Drupal\webform\WebformSubmissionInterface $webform_submission: A webform submission.

1 method overrides WebformElementInterface::preSave()
WebformElementBase::preSave in src/Plugin/WebformElementBase.php
Acts on a webform submission element before the presave hook is invoked.

File

src/Plugin/WebformElementInterface.php, line 850

Class

WebformElementInterface
Defines the interface for webform elements.

Namespace

Drupal\webform\Plugin

Code

public function preSave(array &$element, WebformSubmissionInterface $webform_submission);