function _webform_entity_element_validate_rendering_exception_handler in Webform 8.5
Same name and namespace in other branches
- 6.x webform.module \_webform_entity_element_validate_rendering_exception_handler()
Provides custom PHP exception handling when webform rendering is validated.
Parameters
\Exception|\Throwable $exception: The exception object that was thrown.
Throws
\Exception Throw the exception back to WebformEntityElementsValidator::validateRendering().
See also
\Drupal\webform\WebformEntityElementsValidator::validateRendering()
1 string reference to '_webform_entity_element_validate_rendering_exception_handler'
- WebformEntityElementsValidator::validateRendering in src/
WebformEntityElementsValidator.php - Validate that elements are a valid render array.
File
- ./
webform.module, line 1092 - Enables the creation of webforms and questionnaires.
Code
function _webform_entity_element_validate_rendering_exception_handler($exception) {
throw $exception;
}