public function FormatterInterface::format in Telephone Formatter 8
Formats telephone number into massaged one based on predefined format.
Parameters
string $input: Input phone number.
string $format: Format option.
null|string $region: Country code.
Return value
string Formatted string.
1 method overrides FormatterInterface::format()
- Formatter::format in src/
Formatter.php - Formats telephone number into massaged one based on predefined format.
File
- src/
FormatterInterface.php, line 25
Class
- FormatterInterface
- Formatter service interface.
Namespace
Drupal\telephone_formatterCode
public function format($input, $format, $region = NULL);