You are here

public function YamlFormTest::postCreate in YAML Form 8

Acts on a form submission element after it is created.

Parameters

array $element: An element.

\Drupal\yamlform\YamlFormSubmissionInterface $yamlform_submission: A form submission.

Overrides YamlFormElementBase::postCreate

File

tests/modules/yamlform_test/src/Plugin/YamlFormElement/YamlFormTest.php, line 61

Class

YamlFormTest
Provides a 'yamlform_test' element.

Namespace

Drupal\yamlform_test\Plugin\YamlFormElement

Code

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