How can I “Link to the Content” for teaser view mode of custom content type module? I've created a module that's add a content type to my site and I now want to understand how can I Link a Plain text fields to the Content in Teaser view mode programmatically in my module?
I currently can Link to the Content any Plain text field in:

Home&gt;Administration&gt;Structure&gt;Content types&gt;Content types name&gt;Manage
display

Teaser Manage display page, see below image:

and I want to understand how can I get access or implement this property (feature) in my module, I try to achieve this by adding below code to my module:
#core.entity_view_display.node.teaser
field_version:
  type: string
  weight: 2
  label: inline
  settings:
  third_party_settings: {  }

To no avail.
Thank you for any help.
This is the setting link_to_entity: true:

field_version:
  type: string
  weight: 2
  label: inline
  settings:
    link_to_entity: true
  third_party_settings: {  }