You are here

public function BrazilianIdsServiceInterface::validateCpf in Brazilian IDs 8

Validates CPF numbers.

Parameters

string $value: The value of the CPF number to be validated.

array $error: If provided, it is filled with the error message at $error['message'] if any.

Return value

bool Returns TRUE if the CPF number is valid. Otherwise, returns FALSE.

1 method overrides BrazilianIdsServiceInterface::validateCpf()
BrazilianIdsService::validateCpf in src/BrazilianIdsService.php
Validates CPF numbers.

File

src/BrazilianIdsServiceInterface.php, line 27

Class

BrazilianIdsServiceInterface
Defines the interface of the Brazilian IDs service.

Namespace

Drupal\brazilian_ids

Code

public function validateCpf($value, array &$error = []);