public static function PhoneLinkFieldFormatter::getPhoneTypes in Phone link 8
Get phone link types.
Return value
array
2 calls to PhoneLinkFieldFormatter::getPhoneTypes()
- PhoneLinkFieldFormatter::settingsForm in src/
Plugin/ Field/ FieldFormatter/ PhoneLinkFieldFormatter.php - Returns a form to configure settings for the formatter.
- PhoneLinkFieldFormatter::settingsSummary in src/
Plugin/ Field/ FieldFormatter/ PhoneLinkFieldFormatter.php - Returns a short summary for the current formatter settings.
File
- src/
Plugin/ Field/ FieldFormatter/ PhoneLinkFieldFormatter.php, line 44
Class
- PhoneLinkFieldFormatter
- Plugin implementation of the 'phone_link_field_formatter' formatter.
Namespace
Drupal\phone_link\Plugin\Field\FieldFormatterCode
public static function getPhoneTypes() {
return [
'tel' => t('Default phones'),
'callto' => t('Skype format'),
];
}