You are here

public function TestWebformHandler::createElement in Webform 6.x

Same name and namespace in other branches
  1. 8.5 tests/modules/webform_test_handler/src/Plugin/WebformHandler/TestWebformHandler.php \Drupal\webform_test_handler\Plugin\WebformHandler\TestWebformHandler::createElement()

Acts on a element after it has been created.

Parameters

string $key: The element's key.

array $element: The element's properties.

Overrides WebformHandlerBase::createElement

File

tests/modules/webform_test_handler/src/Plugin/WebformHandler/TestWebformHandler.php, line 226

Class

TestWebformHandler
Webform submission test handler.

Namespace

Drupal\webform_test_handler\Plugin\WebformHandler

Code

public function createElement($key, array $element) {
  $this
    ->displayMessage(__FUNCTION__);
}