You are here

public function TelephoneConstraintValidator::__construct in Telephone Validation 8.2

Constructs a new TelephoneConstraintValidator.

Parameters

\Drupal\telephone_validation\Validator $validator: Telephone number validation service.

File

src/Plugin/Validation/Constraint/TelephoneConstraintValidator.php, line 37

Class

TelephoneConstraintValidator
Validates the TelephoneConstraint constraint.

Namespace

Drupal\telephone_validation\Plugin\Validation\Constraint

Code

public function __construct(Validator $validator) {
  $this->validator = $validator;
}