Implements hook_field_info().
function telephone_field_info() {
return array(
'telephone' => array(
'label' => t('Telephone number'),
'description' => t('This field stores a telephone number in the database.'),
'default_widget' => 'telephone_default',
'default_formatter' => 'telephone_link',
'field item class' => 'Drupal\\telephone\\Type\\TelephoneItem',
),
);
}