You are here

public function WebformTestElement::postCreate in Webform 6.x

Same name and namespace in other branches
  1. 8.5 tests/modules/webform_test_element/src/Plugin/WebformElement/WebformTestElement.php \Drupal\webform_test_element\Plugin\WebformElement\WebformTestElement::postCreate()

Acts on a webform submission element after it is created.

Parameters

array $element: An element.

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

Overrides WebformElementBase::postCreate

File

tests/modules/webform_test_element/src/Plugin/WebformElement/WebformTestElement.php, line 69

Class

WebformTestElement
Provides a 'webform_test_element' element.

Namespace

Drupal\webform_test_element\Plugin\WebformElement

Code

public function postCreate(array &$element, WebformSubmissionInterface $webform_submission) {
  $this
    ->displayMessage(__FUNCTION__);
}