public function ExampleWebformHandler::alterElements in Webform 6.x
Same name and namespace in other branches
- 8.5 modules/webform_example_handler/src/Plugin/WebformHandler/ExampleWebformHandler.php \Drupal\webform_example_handler\Plugin\WebformHandler\ExampleWebformHandler::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
- modules/
webform_example_handler/ src/ Plugin/ WebformHandler/ ExampleWebformHandler.php, line 98
Class
- ExampleWebformHandler
- Webform example handler.
Namespace
Drupal\webform_example_handler\Plugin\WebformHandlerCode
public function alterElements(array &$elements, WebformInterface $webform) {
$this
->debug(__FUNCTION__);
}