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>Administration>Structure>Content types>Content types name>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.