How do I set up an entityreference entity base field to show as a link to the target entity?
-&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)