public function ValidatorBuilderInterface::addMethodMapping

Enables constraint mapping using the given static method.

Parameters

string $methodName The name of the method.:

Return value

ValidatorBuilderInterface The builder object.

1 method overrides ValidatorBuilderInterface::addMethodMapping()
ValidatorBuilder::addMethodMapping in drupal/core/vendor/symfony/validator/Symfony/Component/Validator/ValidatorBuilder.php
Enables constraint mapping using the given static method.

File

drupal/core/vendor/symfony/validator/Symfony/Component/Validator/ValidatorBuilderInterface.php, line 86

Class

ValidatorBuilderInterface
A configurable builder for ValidatorInterface objects.

Namespace

Symfony\Component\Validator

Code

public function addMethodMapping($methodName);