You are here

ValidatorManagerInterface.php in Clientside Validation 8.2

File

src/ValidatorManagerInterface.php
View source
<?php

namespace Drupal\clientside_validation;

use Drupal\Component\Plugin\PluginManagerInterface;
use Drupal\Component\Plugin\Discovery\CachedDiscoveryInterface;
use Drupal\Core\Form\FormStateInterface;

/**
 * Interface ValidatorManagerInterface.
 *
 * @package Drupal\clientside_validation
 */
interface ValidatorManagerInterface extends PluginManagerInterface, CachedDiscoveryInterface {

  /**
   * Get validators for a form element.
   *
   * @param array $element
   *   The form element to get the validators for.
   * @param \Drupal\Core\Form\FormStateInterface $form_state
   *   The form state of the form this element belongs to.
   */
  public function getValidators(array $element, FormStateInterface $form_state);

}

Interfaces

Namesort descending Description
ValidatorManagerInterface Interface ValidatorManagerInterface.