public function WebformHandlerBase::alterElements in Webform 8.5
Same name and namespace in other branches
- 6.x src/Plugin/WebformHandlerBase.php \Drupal\webform\Plugin\WebformHandlerBase::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 WebformHandlerInterface::alterElements
2 methods override WebformHandlerBase::alterElements()
- ExampleWebformHandler::alterElements in modules/
webform_example_handler/ src/ Plugin/ WebformHandler/ ExampleWebformHandler.php - Alter webform submission webform elements.
- TestWebformHandler::alterElements in tests/
modules/ webform_test_handler/ src/ Plugin/ WebformHandler/ TestWebformHandler.php - Alter webform submission webform elements.
File
- src/
Plugin/ WebformHandlerBase.php, line 561
Class
- WebformHandlerBase
- Provides a base class for a webform handler.
Namespace
Drupal\webform\PluginCode
public function alterElements(array &$elements, WebformInterface $webform) {
}