public function TestWebformHandler::alterElements in Webform 6.x
Same name and namespace in other branches
- 8.5 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__);
}