Drupal 8/9 programmatically add taxonomy terms to entities

To use a taxonomy term reference field, attach existing terms to entities. Place the following code snippet into the function where you want taxonomy terms to be attached.
copy-icon

Comments

Authors

Read Next