interface FormatterInterface in Telephone Formatter 8
Formatter service interface.
@package Drupal\telephone_formatter
Hierarchy
- interface \Drupal\telephone_formatter\FormatterInterface
Expanded class hierarchy of FormatterInterface
All classes that implement FormatterInterface
1 file declares its use of FormatterInterface
- TelephoneFormatter.php in src/
Plugin/ Field/ FieldFormatter/ TelephoneFormatter.php
File
- src/
FormatterInterface.php, line 10
Namespace
Drupal\telephone_formatterView source
interface FormatterInterface {
/**
* Formats telephone number into massaged one based on predefined format.
*
* @param string $input
* Input phone number.
* @param string $format
* Format option.
* @param null|string $region
* Country code.
*
* @return string
* Formatted string.
*/
public function format($input, $format, $region = NULL);
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
FormatterInterface:: |
public | function | Formats telephone number into massaged one based on predefined format. | 1 |