How do I set up an entityreference entity base field to show as a link to the target entity? I have a base field on my entity type that's an entity reference, e.g.:
    $fields['type'] = BaseFieldDefinition::create('entity_reference')

How do I set this up so it displays as a link to the target?
-&gt;setDisplayOptions('view', [
        'label' =&gt; 'above',
        'type' =&gt; 'entity_reference_label',
        'settings' =&gt; [
          'link' =&gt; TRUE,
        ],
      ])

and optionally to allow it to be configured in the UI:
      -&gt;setDisplayConfigurable('view', TRUE)