Drupal Planet

Defining bundle fields in code

Source
Factorial.io

Fields in Drupal 9 can be defined in code, or they can be defined in configuration. Both techniques have their uses and advantages. Typically code fields apply to all bundles of the entity type, as so-called base fields, while config fields apply only to a single bundle.

This content is originally published in this URL

Call for Support