You are here

public function BrazilianIdsServiceInterface::formatCnpj in Brazilian IDs 8

Formats a CNPJ number like 99.999.999/9999-99.

Parameters

string $value: The CNPJ number to be formatted.

Return value

string The formatted CNPJ number.

1 method overrides BrazilianIdsServiceInterface::formatCnpj()
BrazilianIdsService::formatCnpj in src/BrazilianIdsService.php
Formats a CNPJ number like 99.999.999/9999-99.

File

src/BrazilianIdsServiceInterface.php, line 77

Class

BrazilianIdsServiceInterface
Defines the interface of the Brazilian IDs service.

Namespace

Drupal\brazilian_ids

Code

public function formatCnpj($value);