You are here

function _webform_entity_element_validate_rendering_exception_handler in Webform 6.x

Same name and namespace in other branches
  1. 8.5 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 1076
Enables the creation of webforms and questionnaires.

Code

function _webform_entity_element_validate_rendering_exception_handler($exception) {
  throw $exception;
}