public function WebformEntityElementsValidatorInterface::validate in Webform 8.5
Same name and namespace in other branches
- 6.x src/WebformEntityElementsValidatorInterface.php \Drupal\webform\WebformEntityElementsValidatorInterface::validate()
Validate webform elements.
Parameters
\Drupal\webform\WebformInterface $webform: A webform.
array $options: An array of validation rules to check.
Return value
array|null An array of error messages or NULL if the elements are valid.
1 method overrides WebformEntityElementsValidatorInterface::validate()
- WebformEntityElementsValidator::validate in src/
WebformEntityElementsValidator.php - Validate webform elements.
File
- src/
WebformEntityElementsValidatorInterface.php, line 21
Class
- WebformEntityElementsValidatorInterface
- Defines an interface for elements validator.
Namespace
Drupal\webformCode
public function validate(WebformInterface $webform, array $options = []);