You are here

interface ValidatorManagerInterface in Clientside Validation 8

Same name and namespace in other branches
  1. 8.2 src/ValidatorManagerInterface.php \Drupal\clientside_validation\ValidatorManagerInterface
  2. 3.0.x src/ValidatorManagerInterface.php \Drupal\clientside_validation\ValidatorManagerInterface
  3. 2.0.x src/ValidatorManagerInterface.php \Drupal\clientside_validation\ValidatorManagerInterface

Interface ValidatorManagerInterface.

@package Drupal\clientside_validation

Hierarchy

Expanded class hierarchy of ValidatorManagerInterface

All classes that implement ValidatorManagerInterface

File

src/ValidatorManagerInterface.php, line 14

Namespace

Drupal\clientside_validation
View source
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);

}

Members

Namesort descending Modifiers Type Description Overrides
CachedDiscoveryInterface::clearCachedDefinitions public function Clears static and persistent plugin definition caches. 2
CachedDiscoveryInterface::useCaches public function Disable the use of caches. 2
DiscoveryInterface::getDefinition public function Gets a specific plugin definition. 4
DiscoveryInterface::getDefinitions public function Gets the definition of all plugins for this type. 3
DiscoveryInterface::hasDefinition public function Indicates if a specific plugin definition exists. 2
FactoryInterface::createInstance public function Creates a pre-configured instance of a plugin. 7
MapperInterface::getInstance public function Gets a preconfigured instance of a plugin. 4
ValidatorManagerInterface::getValidators public function Get validators for a form element. 1