You are here

public function WebformEntityElementsValidatorInterface::validate in Webform 6.x

Same name and namespace in other branches
  1. 8.5 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\webform

Code

public function validate(WebformInterface $webform, array $options = []);