You are here

public function WebformElementBase::postSave in Webform 8.5

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

Acts on a saved webform submission element before the insert or update hook is invoked.

Parameters

array $element: An element.

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

bool $update: TRUE if the entity has been updated, or FALSE if it has been inserted.

Overrides WebformElementInterface::postSave

5 methods override WebformElementBase::postSave()
TextFormat::postSave in src/Plugin/WebformElement/TextFormat.php
Acts on a saved webform submission element before the insert or update hook is invoked.
WebformCompositeBase::postSave in src/Plugin/WebformElement/WebformCompositeBase.php
Acts on a saved webform submission element before the insert or update hook is invoked.
WebformComputedBase::postSave in src/Plugin/WebformElement/WebformComputedBase.php
Acts on a saved webform submission element before the insert or update hook is invoked.
WebformManagedFileBase::postSave in src/Plugin/WebformElement/WebformManagedFileBase.php
Acts on a saved webform submission element before the insert or update hook is invoked.
WebformTestElement::postSave in tests/modules/webform_test_element/src/Plugin/WebformElement/WebformTestElement.php
Acts on a saved webform submission element before the insert or update hook is invoked.

File

src/Plugin/WebformElementBase.php, line 2339

Class

WebformElementBase
Provides a base class for a webform element.

Namespace

Drupal\webform\Plugin

Code

public function postSave(array &$element, WebformSubmissionInterface $webform_submission, $update = TRUE) {
}