You are here

WebformEntityElementsValidatorInterface.php in Webform 6.x

Same filename and directory in other branches
  1. 8.5 src/WebformEntityElementsValidatorInterface.php

Namespace

Drupal\webform

File

src/WebformEntityElementsValidatorInterface.php
View source
<?php

namespace Drupal\webform;


/**
 * Defines an interface for elements validator.
 */
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 = []);

}

Interfaces

Namesort descending Description
WebformEntityElementsValidatorInterface Defines an interface for elements validator.