interface WebformEntityElementsValidatorInterface in Webform 6.x
Same name and namespace in other branches
- 8.5 src/WebformEntityElementsValidatorInterface.php \Drupal\webform\WebformEntityElementsValidatorInterface
Defines an interface for elements validator.
Hierarchy
- interface \Drupal\webform\WebformEntityElementsValidatorInterface
Expanded class hierarchy of WebformEntityElementsValidatorInterface
All classes that implement WebformEntityElementsValidatorInterface
File
- src/
WebformEntityElementsValidatorInterface.php, line 8
Namespace
Drupal\webformView source
interface WebformEntityElementsValidatorInterface {
/**
* Validate webform elements.
*
* @param \Drupal\webform\WebformInterface $webform
* A webform.
* @param array $options
* An array of validation rules to check.
*
* @return array|null
* An array of error messages or NULL if the elements are valid.
*/
public function validate(WebformInterface $webform, array $options = []);
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
WebformEntityElementsValidatorInterface:: |
public | function | Validate webform elements. | 1 |