You are here

interface WebformEntityElementsValidatorInterface in Webform 8.5

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

Defines an interface for elements validator.

Hierarchy

Expanded class hierarchy of WebformEntityElementsValidatorInterface

All classes that implement WebformEntityElementsValidatorInterface

3 files declare their use of WebformEntityElementsValidatorInterface
WebformUiElementDeleteForm.php in modules/webform_ui/src/Form/WebformUiElementDeleteForm.php
WebformUiElementFormBase.php in modules/webform_ui/src/Form/WebformUiElementFormBase.php
WebformUiEntityElementsForm.php in modules/webform_ui/src/WebformUiEntityElementsForm.php

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