Custom Compound Fields in Drupal 8
This session will give an overview of the Field API in Drupal 8, and show how to create custom compond fields. These fields can initially be used in content types, and then further extended to be used in Form API forms.
What's a Compound Field? Imagine a cake recipe. It consists of ingredients to bake this cake. Every single ingredient consists of multiple atomic values: amount, metric (tsp, tbsp, cup, gram, ml), a description, colories, etc. In a recipe, however, an ingredient is a single, cohesive field that consists of combined data values.
Alternatives to custom module development such as the Paragraphs module are frequently preferred, but in certain cases, a custom compound module may be in order. One aspect of this session will discuss when to use core or contrib options vs. creating a custom solution.