title: How to create an entity reference field in Drupal 8 programmatically?
body: <p>I want to create an entity reference field in Drupal 8 using my custom module. Like when someone clicks a link on a Drupal page, an entity reference field would be created in the page node type automatically.</p>
  
  <p>Can anyone help me with this?</p>