You are here

interface WebformEntityElementsValidatorInterface in Webform 6.x

Same name and namespace in other branches
  1. 8.5 src/WebformEntityElementsValidatorInterface.php \Drupal\webform\WebformEntityElementsValidatorInterface

Defines an interface for elements validator.

Hierarchy

Expanded class hierarchy of WebformEntityElementsValidatorInterface

All classes that implement WebformEntityElementsValidatorInterface

File

src/WebformEntityElementsValidatorInterface.php, line 8

Namespace

Drupal\webform
View 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