public function TestWebformHandler::alterElements in Webform 8.5
Same name and namespace in other branches
- 6.x tests/modules/webform_test_handler/src/Plugin/WebformHandler/TestWebformHandler.php \Drupal\webform_test_handler\Plugin\WebformHandler\TestWebformHandler::alterElements()
Alter webform submission webform elements.
Note: This hook is ignored by conditional logic.
Parameters
array $elements: An associative array containing the webform elements.
\Drupal\webform\WebformInterface $webform: The webform.
Overrides WebformHandlerBase::alterElements
File
- tests/
modules/ webform_test_handler/ src/ Plugin/ WebformHandler/ TestWebformHandler.php, line 60
Class
- TestWebformHandler
- Webform submission test handler.
Namespace
Drupal\webform_test_handler\Plugin\WebformHandlerCode
public function alterElements(array &$elements, WebformInterface $webform) {
$this
->displayMessage(__FUNCTION__);
}