How do I declare a Telephone field in a content entity? I want to create a custom content entity with a telephone field. I'm baffled on how to do it; I can't figure out what should go into setDisplayOptions() to have it show up as a telephone field on the form. Does anyone know where I could find an example of this?
Okay, the following configuration seemed to work:

$fields['display_number'] = BaseFieldDefinition::create('telephone')
      -&gt;setLabel(t('Display Number'))
      -&gt;setDescription((t('The phone number to display')))
      -&gt;setDefaultValue('')
      -&gt;setDisplayOptions('form', array(
        'type' =&gt; 'telephone_default',
        'weight' =&gt; 0,
      ))
      -&gt;setDisplayConfigurable('form', TRUE);